13#line 39 "../../build/grammar_ttl.c"
36#define T_DTYPE_MARKER 19
100#define YYCODETYPE unsigned char
102#define YYACTIONTYPE unsigned char
103#define TTLParseTOKENTYPE char *
113#define YYSTACKDEPTH 100
115#define TTLParseARG_SDECL VOLK_TTLParserState *state ;
116#define TTLParseARG_PDECL , VOLK_TTLParserState *state
117#define TTLParseARG_PARAM ,state
118#define TTLParseARG_FETCH VOLK_TTLParserState *state =yypParser->state ;
119#define TTLParseARG_STORE yypParser->state =state ;
120#define TTLParseCTX_SDECL
121#define TTLParseCTX_PDECL
122#define TTLParseCTX_PARAM
123#define TTLParseCTX_FETCH
124#define TTLParseCTX_STORE
127#define YYNRULE_WITH_ACTION 27
129#define YY_MAX_SHIFT 29
130#define YY_MIN_SHIFTREDUCE 65
131#define YY_MAX_SHIFTREDUCE 105
132#define YY_ERROR_ACTION 106
133#define YY_ACCEPT_ACTION 107
134#define YY_NO_ACTION 108
135#define YY_MIN_REDUCE 109
136#define YY_MAX_REDUCE 149
138#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
149# define yytestcase(X)
203#define YY_ACTTAB_COUNT (115)
205 107, 1, 67, 9, 17, 79, 80, 81, 82, 83,
206 91, 90, 17, 79, 80, 81, 82, 83, 91, 90,
207 84, 7, 14, 2, 86, 14, 16, 13, 84, 7,
208 13, 2, 122, 83, 91, 90, 5, 28, 104, 29,
209 98, 23, 18, 13, 84, 7, 13, 2, 137, 137,
210 137, 137, 15, 132, 132, 132, 132, 132, 117, 118,
211 3, 118, 91, 90, 4, 133, 133, 133, 133, 133,
212 11, 19, 116, 116, 116, 116, 116, 20, 116, 116,
213 116, 116, 116, 68, 115, 115, 115, 115, 115, 91,
214 90, 104, 91, 90, 10, 77, 8, 75, 6, 87,
215 75, 66, 12, 22, 21, 65, 25, 24, 26, 136,
216 108, 108, 108, 27, 85,
219 25, 26, 1, 2, 4, 5, 6, 7, 8, 9,
220 10, 11, 4, 5, 6, 7, 8, 9, 10, 11,
221 20, 21, 34, 23, 24, 37, 33, 34, 20, 21,
222 37, 23, 37, 9, 10, 11, 32, 13, 16, 15,
223 16, 17, 33, 34, 20, 21, 37, 23, 27, 28,
224 29, 30, 31, 36, 37, 38, 39, 40, 37, 38,
225 32, 40, 10, 11, 32, 36, 37, 38, 39, 40,
226 41, 35, 36, 37, 38, 39, 40, 35, 36, 37,
227 38, 39, 40, 1, 36, 37, 38, 39, 40, 10,
228 11, 16, 10, 11, 2, 12, 32, 18, 3, 24,
229 18, 1, 19, 16, 11, 1, 16, 11, 14, 0,
230 42, 42, 42, 16, 22, 42, 42, 42, 42, 42,
231 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
232 42, 42, 42, 42, 42, 42, 42, 42, 42, 25,
234#define YY_SHIFT_COUNT (29)
235#define YY_SHIFT_MIN (0)
236#define YY_SHIFT_MAX (109)
237static const unsigned char yy_shift_ofst[] = {
238 115, 24, 0, 8, 8, 8, 8, 79, 79, 82,
239 79, 75, 52, 22, 22, 22, 92, 83, 1, 95,
240 95, 100, 93, 87, 104, 96, 90, 94, 97, 109,
242#define YY_REDUCE_COUNT (15)
243#define YY_REDUCE_MIN (-25)
244#define YY_REDUCE_MAX (64)
245static const signed char yy_reduce_ofst[] = {
246 -25, 21, 29, 36, 42, 17, 48, -7, 9, -12,
247 -12, 4, -5, 28, 32, 64,
250 138, 106, 106, 106, 106, 106, 106, 106, 106, 106,
251 106, 149, 106, 149, 149, 149, 106, 120, 106, 113,
252 114, 106, 106, 106, 106, 106, 106, 106, 106, 106,
304#ifdef YYTRACKMAXSTACKDEPTH
307#ifndef YYNOERRORRECOVERY
326static FILE *yyTraceFILE = 0;
327static char *yyTracePrompt = 0;
349 yyTraceFILE = TraceFILE;
350 yyTracePrompt = zTracePrompt;
351 if( yyTraceFILE==0 ) yyTracePrompt = 0;
352 else if( yyTracePrompt==0 ) yyTraceFILE = 0;
356#if defined(YYCOVERAGE) || !defined(NDEBUG)
359static const char *
const yyTokenName[] = {
408static const char *
const yyRuleName[] = {
409 "prefixID ::= PFX_KW WS PFX_DECL WS IRIREF PERIOD",
410 "base ::= BASE WS IRIREF PERIOD",
411 "triples ::= subject ows predObjList PERIOD",
412 "triples ::= subject ows predObjList SEMICOLON PERIOD",
413 "predObjList ::= predicate ows objectList",
414 "predObjList ::= predObjList SEMICOLON predicate ows objectList",
415 "objectList ::= objectList COMMA object",
416 "objectList ::= object",
417 "subject ::= resource",
419 "predicate ::= RDF_TYPE",
420 "literal ::= STRING",
421 "literal ::= STRING LANGTAG",
422 "literal ::= STRING DTYPE_MARKER resource",
423 "literal ::= INTEGER",
424 "literal ::= DOUBLE",
425 "literal ::= DECIMAL",
426 "literal ::= BOOLEAN",
427 "blank ::= BNODE_ID",
429 "blank ::= LBRACKET predObjList RBRACKET",
430 "blank ::= LPAREN RPAREN",
431 "collection ::= LPAREN itemList RPAREN",
432 "itemList ::= itemList ows object",
433 "itemList ::= object",
434 "resource ::= IRIREF",
435 "resource ::= NSIRI",
436 "turtleDoc ::= statements EOF",
437 "statements ::= statements statement",
439 "statement ::= prefixID",
440 "statement ::= base",
441 "statement ::= triples",
443 "predicate ::= resource",
444 "object ::= resource",
446 "object ::= literal",
447 "blank ::= collection",
464 newSize = p->yystksz*2 + 100;
467 pNew = malloc(newSize*
sizeof(pNew[0]));
468 if( pNew ) pNew[0] = p->yystk0;
470 pNew = realloc(p->
yystack, newSize*
sizeof(pNew[0]));
477 fprintf(yyTraceFILE,
"%sStack grows from %d to %d entries.\n",
478 yyTracePrompt, p->yystksz, newSize);
481 p->yystksz = newSize;
492#ifndef YYMALLOCARGTYPE
493# define YYMALLOCARGTYPE size_t
501#ifdef YYTRACKMAXSTACKDEPTH
502 yypParser->yyhwm = 0;
505 yypParser->
yytos = NULL;
507 yypParser->yystksz = 0;
508 if( yyGrowStack(yypParser) ){
509 yypParser->
yystack = &yypParser->yystk0;
510 yypParser->yystksz = 1;
513#ifndef YYNOERRORRECOVERY
524#ifndef TTLParse_ENGINEALWAYSONSTACK
544 return (
void*)yypParser;
556static void yy_destructor(
601#line 36 "grammar_ttl.y"
602 (void) state; free ((yypminor->
yy0));
603#line 628 "../../build/grammar_ttl.c"
614#line 130 "grammar_ttl.y"
616#line 641 "../../build/grammar_ttl.c"
621#line 98 "grammar_ttl.y"
623#line 648 "../../build/grammar_ttl.c"
629#line 118 "grammar_ttl.y"
631#line 656 "../../build/grammar_ttl.c"
645static void yy_pop_parser_stack(
yyParser *pParser){
647 assert( pParser->
yytos!=0 );
652 fprintf(yyTraceFILE,
"%sPopping %s\n",
665 while( pParser->
yytos>pParser->
yystack ) yy_pop_parser_stack(pParser);
671#ifndef TTLParse_ENGINEALWAYSONSTACK
682 void (*freeProc)(
void*)
684#ifndef YYPARSEFREENEVERNULL
695#ifdef YYTRACKMAXSTACKDEPTH
696int TTLParseStackPeak(
void *p){
698 return pParser->yyhwm;
707#if defined(YYCOVERAGE)
719#if defined(YYCOVERAGE)
720int TTLParseCoverage(FILE *out){
721 int stateno, iLookAhead, i;
723 for(stateno=0; stateno<
YYNSTATE; stateno++){
724 i = yy_shift_ofst[stateno];
725 for(iLookAhead=0; iLookAhead<
YYNTOKEN; iLookAhead++){
726 if( yy_lookahead[i+iLookAhead]!=iLookAhead )
continue;
727 if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
729 fprintf(out,
"State %d lookahead %s %s\n", stateno,
730 yyTokenName[iLookAhead],
731 yycoverage[stateno][iLookAhead] ?
"ok" :
"missed");
751#if defined(YYCOVERAGE)
752 yycoverage[stateno][iLookAhead] = 1;
755 i = yy_shift_ofst[stateno];
763 if( yy_lookahead[i]!=iLookAhead ){
766 assert( iLookAhead<
sizeof(yyFallback)/
sizeof(yyFallback[0]) );
767 iFallback = yyFallback[iLookAhead];
771 fprintf(yyTraceFILE,
"%sFALLBACK %s => %s\n",
772 yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
775 assert( yyFallback[iFallback]==0 );
776 iLookAhead = iFallback;
782 int j = i - iLookAhead + YYWILDCARD;
783 assert( j<(
int)(
sizeof(yy_lookahead)/
sizeof(yy_lookahead[0])) );
784 if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
787 fprintf(yyTraceFILE,
"%sWILDCARD %s => %s\n",
788 yyTracePrompt, yyTokenName[iLookAhead],
789 yyTokenName[YYWILDCARD]);
796 return yy_default[stateno];
798 assert( i>=0 && i<(
int)(
sizeof(yy_action)/
sizeof(yy_action[0])) );
815 return yy_default[stateno];
820 i = yy_reduce_ofst[stateno];
825 return yy_default[stateno];
829 assert( yy_lookahead[i]==iLookAhead );
837static void yyStackOverflow(
yyParser *yypParser){
842 fprintf(yyTraceFILE,
"%sStack Overflow!\n",yyTracePrompt);
845 while( yypParser->
yytos>yypParser->
yystack ) yy_pop_parser_stack(yypParser);
849#line 17 "grammar_ttl.y"
851 log_error (
"Stack oveflow in TTL parsing.");
853#line 878 "../../build/grammar_ttl.c"
863static void yyTraceShift(
yyParser *yypParser,
int yyNewState,
const char *zTag){
866 fprintf(yyTraceFILE,
"%s%s '%s', go to state %d\n",
867 yyTracePrompt, zTag, yyTokenName[yypParser->
yytos->
major],
870 fprintf(yyTraceFILE,
"%s%s '%s', pending reduce %d\n",
871 yyTracePrompt, zTag, yyTokenName[yypParser->
yytos->
major],
877# define yyTraceShift(X,Y,Z)
891#ifdef YYTRACKMAXSTACKDEPTH
892 if( (
int)(yypParser->
yytos - yypParser->
yystack)>yypParser->yyhwm ){
894 assert( yypParser->yyhwm == (
int)(yypParser->
yytos - yypParser->
yystack) );
900 yyStackOverflow(yypParser);
904 if( yypParser->
yytos>=&yypParser->
yystack[yypParser->yystksz] ){
905 if( yyGrowStack(yypParser) ){
907 yyStackOverflow(yypParser);
919 yyTraceShift(yypParser, yyNewState,
"Shift");
970static const signed char yyRuleInfoNRhs[] = {
1028 unsigned int yyruleno,
1039 (void)yyLookaheadToken;
1040 yymsp = yypParser->
yytos;
1054{ yy_destructor(yypParser,13,&yymsp[-5].minor);
1055#line 63 "grammar_ttl.y"
1057 log_trace (
"Adding prefix declaration: '%s': '%s'", yymsp[-3].minor.yy0, yymsp[-1].minor.yy0);
1060 free (yymsp[-3].minor.yy0);
1061 free (yymsp[-1].minor.yy0);
1063#line 1088 "../../build/grammar_ttl.c"
1064 yy_destructor(yypParser,16,&yymsp[-4].minor);
1065 yy_destructor(yypParser,16,&yymsp[-2].minor);
1066 yy_destructor(yypParser,1,&yymsp[0].minor);
1070{ yy_destructor(yypParser,17,&yymsp[-3].minor);
1071#line 71 "grammar_ttl.y"
1076 free (yymsp[-1].minor.yy0);
1078#line 1103 "../../build/grammar_ttl.c"
1079 yy_destructor(yypParser,16,&yymsp[-2].minor);
1080 yy_destructor(yypParser,1,&yymsp[0].minor);
1084#line 78 "grammar_ttl.y"
1094#line 1119 "../../build/grammar_ttl.c"
1095 yy_destructor(yypParser,1,&yymsp[0].minor);
1098#line 87 "grammar_ttl.y"
1108#line 1133 "../../build/grammar_ttl.c"
1109 yy_destructor(yypParser,2,&yymsp[-1].minor);
1110 yy_destructor(yypParser,1,&yymsp[0].minor);
1113#line 99 "grammar_ttl.y"
1116 if (state->lms) s = state->lms;
1120 log_info (
"Link map subject not present. Assuming BNode.");
1127#line 1152 "../../build/grammar_ttl.c"
1131#line 112 "grammar_ttl.y"
1133 VOLK_link_map_add (yymsp[-4].minor.yy34, yymsp[-2].minor.yy50, yymsp[0].minor.yy22);
1136#line 1161 "../../build/grammar_ttl.c"
1137 yy_destructor(yypParser,2,&yymsp[-3].minor);
1141#line 119 "grammar_ttl.y"
1147#line 1172 "../../build/grammar_ttl.c"
1148 yy_destructor(yypParser,3,&yymsp[-1].minor);
1152#line 124 "grammar_ttl.y"
1157#line 1182 "../../build/grammar_ttl.c"
1162#line 131 "grammar_ttl.y"
1164#line 1189 "../../build/grammar_ttl.c"
1167{ yy_destructor(yypParser,18,&yymsp[0].minor);
1168#line 137 "grammar_ttl.y"
1170#line 1195 "../../build/grammar_ttl.c"
1174#line 147 "grammar_ttl.y"
1178 free (yymsp[0].minor.yy0);
1180#line 1205 "../../build/grammar_ttl.c"
1184#line 152 "grammar_ttl.y"
1188 free (yymsp[-1].minor.yy0);
1189 free (yymsp[0].minor.yy0);
1191#line 1216 "../../build/grammar_ttl.c"
1195#line 158 "grammar_ttl.y"
1199 "Created DT-literal: \"%s\"^^%s",
1201 free (yymsp[-2].minor.yy0);
1203#line 1228 "../../build/grammar_ttl.c"
1204 yy_destructor(yypParser,19,&yymsp[-1].minor);
1208#line 165 "grammar_ttl.y"
1211 free (yymsp[0].minor.yy0);
1213#line 1238 "../../build/grammar_ttl.c"
1217#line 169 "grammar_ttl.y"
1220 free (yymsp[0].minor.yy0);
1222#line 1247 "../../build/grammar_ttl.c"
1226#line 173 "grammar_ttl.y"
1229 free (yymsp[0].minor.yy0);
1231#line 1256 "../../build/grammar_ttl.c"
1235#line 177 "grammar_ttl.y"
1238 free (yymsp[0].minor.yy0);
1240#line 1265 "../../build/grammar_ttl.c"
1244#line 184 "grammar_ttl.y"
1248 free (yymsp[0].minor.yy0);
1250#line 1275 "../../build/grammar_ttl.c"
1254{ yy_destructor(yypParser,20,&yymsp[0].minor);
1255#line 189 "grammar_ttl.y"
1259 log_trace (
"Created empty list BN: _:%s", yymsp[0].minor.yy50->data);
1261#line 1286 "../../build/grammar_ttl.c"
1265{ yy_destructor(yypParser,21,&yymsp[-2].minor);
1266#line 194 "grammar_ttl.y"
1272 log_trace (
"Created list BN: _:%s", yymsp[-2].minor.yy50->data);
1276#line 1301 "../../build/grammar_ttl.c"
1277 yy_destructor(yypParser,22,&yymsp[0].minor);
1281{ yy_destructor(yypParser,23,&yymsp[-1].minor);
1282#line 204 "grammar_ttl.y"
1285 log_trace (
"Created list terminator: %s", yymsp[-1].minor.yy50->data);
1287#line 1312 "../../build/grammar_ttl.c"
1288 yy_destructor(yypParser,24,&yymsp[0].minor);
1292{ yy_destructor(yypParser,23,&yymsp[-2].minor);
1293#line 213 "grammar_ttl.y"
1298#line 1323 "../../build/grammar_ttl.c"
1299 yy_destructor(yypParser,24,&yymsp[0].minor);
1303#line 220 "grammar_ttl.y"
1309#line 1334 "../../build/grammar_ttl.c"
1313#line 225 "grammar_ttl.y"
1318#line 1343 "../../build/grammar_ttl.c"
1322#line 232 "grammar_ttl.y"
1325 free (yymsp[0].minor.yy0);
1330 yylhsminor.
yy50 = rel_iri;
1334#line 1359 "../../build/grammar_ttl.c"
1338#line 243 "grammar_ttl.y"
1342 free (yymsp[0].minor.yy0);
1344#line 1369 "../../build/grammar_ttl.c"
1348#line 54 "grammar_ttl.y"
1351#line 1376 "../../build/grammar_ttl.c"
1352 yy_destructor(yypParser,15,&yymsp[0].minor);
1356{ yy_destructor(yypParser,16,&yymsp[0].minor);
1357#line 61 "grammar_ttl.y"
1360#line 1385 "../../build/grammar_ttl.c"
1365{ yy_destructor(yypParser,37,&yymsp[0].minor);
1366#line 136 "grammar_ttl.y"
1369#line 1394 "../../build/grammar_ttl.c"
1373{ yy_destructor(yypParser,38,&yymsp[0].minor);
1374#line 142 "grammar_ttl.y"
1377#line 1402 "../../build/grammar_ttl.c"
1381{ yy_destructor(yypParser,39,&yymsp[0].minor);
1382#line 143 "grammar_ttl.y"
1385#line 1410 "../../build/grammar_ttl.c"
1389{ yy_destructor(yypParser,40,&yymsp[0].minor);
1390#line 203 "grammar_ttl.y"
1393#line 1418 "../../build/grammar_ttl.c"
1399 assert(yyruleno!=30);
1400 assert(yyruleno!=31);
1401 assert(yyruleno!=32);
1406 assert( yyruleno<
sizeof(yyRuleInfoLhs)/
sizeof(yyRuleInfoLhs[0]) );
1407 yygoto = yyRuleInfoLhs[yyruleno];
1408 yysize = yyRuleInfoNRhs[yyruleno];
1409 yyact = yy_find_reduce_action(yymsp[yysize].stateno,(
YYCODETYPE)yygoto);
1419 yypParser->
yytos = yymsp;
1422 yyTraceShift(yypParser, yyact,
"... then shift");
1429#ifndef YYNOERRORRECOVERY
1430static void yy_parse_failed(
1437 fprintf(yyTraceFILE,
"%sFail!\n",yyTracePrompt);
1440 while( yypParser->
yytos>yypParser->
yystack ) yy_pop_parser_stack(yypParser);
1444#line 22 "grammar_ttl.y"
1446 log_error (
"TTL parse error. Cannot continue.");
1448#line 1473 "../../build/grammar_ttl.c"
1458static void yy_syntax_error(
1465#define TOKEN yyminor
1467#line 27 "grammar_ttl.y"
1470 yy_parse_failed (yypParser);
1471#line 1496 "../../build/grammar_ttl.c"
1480static void yy_accept(
1487 fprintf(yyTraceFILE,
"%sAccept!\n",yyTracePrompt);
1490#ifndef YYNOERRORRECOVERY
1529#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
1539 assert( yypParser->
yytos!=0 );
1540#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
1541 yyendofinput = (yymajor==0);
1548 fprintf(yyTraceFILE,
"%sInput '%s' in state %d\n",
1549 yyTracePrompt,yyTokenName[yymajor],yyact);
1551 fprintf(yyTraceFILE,
"%sInput '%s' with pending reduce %d\n",
1560 yyact = yy_find_shift_action((
YYCODETYPE)yymajor,yyact);
1564 assert( yyruleno<(
int)(
sizeof(yyRuleName)/
sizeof(yyRuleName[0])) );
1566 int yysize = yyRuleInfoNRhs[yyruleno];
1568 fprintf(yyTraceFILE,
"%sReduce %d [%s]%s, pop back to state %d.\n",
1570 yyruleno, yyRuleName[yyruleno],
1574 fprintf(yyTraceFILE,
"%sReduce %d [%s]%s.\n",
1575 yyTracePrompt, yyruleno, yyRuleName[yyruleno],
1584 if( yyRuleInfoNRhs[yyruleno]==0 ){
1585#ifdef YYTRACKMAXSTACKDEPTH
1586 if( (
int)(yypParser->
yytos - yypParser->
yystack)>yypParser->yyhwm ){
1588 assert( yypParser->yyhwm ==
1594 yyStackOverflow(yypParser);
1598 if( yypParser->
yytos>=&yypParser->
yystack[yypParser->yystksz-1] ){
1599 if( yyGrowStack(yypParser) ){
1600 yyStackOverflow(yypParser);
1608 yy_shift(yypParser,yyact,(
YYCODETYPE)yymajor,yyminor);
1609#ifndef YYNOERRORRECOVERY
1615 yy_accept(yypParser);
1619 yyminorunion.
yy0 = yyminor;
1625 fprintf(yyTraceFILE,
"%sSyntax Error!\n",yyTracePrompt);
1649 yy_syntax_error(yypParser,yymajor,yyminor);
1652 if( yymx==YYERRORSYMBOL || yyerrorhit ){
1655 fprintf(yyTraceFILE,
"%sDiscard input token %s\n",
1656 yyTracePrompt,yyTokenName[yymajor]);
1659 yy_destructor(yypParser, (
YYCODETYPE)yymajor, &yyminorunion);
1663 yyact = yy_find_reduce_action(yypParser->
yytos->
stateno,
1666 yy_pop_parser_stack(yypParser);
1668 if( yypParser->
yytos <= yypParser->
yystack || yymajor==0 ){
1669 yy_destructor(yypParser,(
YYCODETYPE)yymajor,&yyminorunion);
1670 yy_parse_failed(yypParser);
1671#ifndef YYNOERRORRECOVERY
1675 }
else if( yymx!=YYERRORSYMBOL ){
1676 yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor);
1683#elif defined(YYNOERRORRECOVERY)
1691 yy_syntax_error(yypParser,yymajor, yyminor);
1692 yy_destructor(yypParser,(
YYCODETYPE)yymajor,&yyminorunion);
1705 yy_syntax_error(yypParser,yymajor, yyminor);
1708 yy_destructor(yypParser,(
YYCODETYPE)yymajor,&yyminorunion);
1710 yy_parse_failed(yypParser);
1711#ifndef YYNOERRORRECOVERY
1723 fprintf(yyTraceFILE,
"%sReturn. Stack=",yyTracePrompt);
1724 for(i=&yypParser->
yystack[1]; i<=yypParser->
yytos; i++){
1725 fprintf(yyTraceFILE,
"%c%s", cDiv, yyTokenName[i->
major]);
1728 fprintf(yyTraceFILE,
"]\n");
1740 assert( iToken<(
int)(
sizeof(yyFallback)/
sizeof(yyFallback[0])) );
1741 return yyFallback[iToken];
#define YY_MIN_SHIFTREDUCE
#define YY_MAX_SHIFTREDUCE
#define YYNRULE_WITH_ACTION
void TTLParseFinalize(void *p)
#define TTLParseCTX_STORE
int TTLParseFallback(int iToken)
#define TTLParseARG_PDECL
#define TTLParseTOKENTYPE
#define TTLParseCTX_PDECL
void TTLParseTrace(FILE *TraceFILE, char *zTracePrompt)
#define TTLParseCTX_FETCH
#define TTLParseCTX_SDECL
#define TTLParseARG_FETCH
void TTLParseInit(void *yypRawParser TTLParseCTX_PDECL)
#define TTLParseCTX_PARAM
#define TTLParseARG_SDECL
#define TTLParseARG_STORE
size_t VOLK_graph_add_link_map(VOLK_GraphIterator *it, VOLK_LinkMap *lm)
Add triples for a term and related link map to a graph.
VOLK_Term * VOLK_bnode_add_collection(VOLK_GraphIterator *it, VOLK_TermSet *ts)
Add triples for an anonymous collection to a graph.
VOLK_rc VOLK_nsmap_add(const char *pfx, const char *nsstr)
Add a prefix -> namespace pair to the map or update it.
#define VOLK_MEM_ERR
Memory allocation error.
#define VOLK_OK
Generic success return code.
#define VOLK_NOACTION
No action taken.
#define VOLK_PARSE_ERR
Codec parser error.
VOLK_Term * VOLK_lt_literal_new(const char *data, char *lang)
Shortcut to create a language-tagged literal term.
VOLK_rc VOLK_term_set_add(VOLK_TermSet *ts, VOLK_Term *term, VOLK_Term **existing)
Add term to a term set.
struct hashmap VOLK_TermSet
a set of unique terms.
VOLK_Term * VOLK_iriref_new(const char *data)
Create an IRI reference.
VOLK_Term * VOLK_iriref_new_abs(const VOLK_Term *root, const VOLK_Term *iri)
Create a new absolute IRI from a path relative to a root IRI.
VOLK_Term * VOLK_literal_new(const char *data, VOLK_Term *datatype)
Shortcut to create a literal term.
VOLK_LinkMap * VOLK_link_map_new(const VOLK_Term *linked_term, VOLK_LinkType type)
New link map.
VOLK_Term * VOLK_bnode_new(const char *data)
Shortcut to create a blank node.
VOLK_TermSet * VOLK_term_set_new()
Create a new term set.
void VOLK_term_set_free(VOLK_TermSet *ts)
Free a term set.
void VOLK_link_map_free(VOLK_LinkMap *lm)
Free a link map.
VOLK_Term * VOLK_iriref_new_ns(const char *data)
Create an IRI reference from a namespace-prefixed string.
void VOLK_term_free(VOLK_Term *term)
VOLK_rc VOLK_link_map_add(VOLK_LinkMap *lmap, VOLK_Term *term, VOLK_TermSet *tset)
Add a term - term set pair to a link map.
@ VOLK_LINK_OUTBOUND
Outbound link (po).
char * data
URI, literal value, or BNode label.
struct term_t * datatype
Data type IRI for VOLK_TERM_LITERAL.
VOLK_LangTag lang
Lang tag for VOLK_TERM_LT_LITERAL.
NTParseARG_SDECL NTParseCTX_SDECL yyStackEntry yystack[YYSTACKDEPTH]
yyStackEntry * yystackEnd