/* * DO NOT EDIT THIS FILE! * * Parser generated by BisonGen on Fri May 5 16:18:57 2006. */ #include "Python.h" #include "structmember.h" #define PROJECT_NAME "SPARQL" #define PARSER_NAME "SPARQLParser" #define MODULE_INITFUNC initSPARQLParserc /* modules required for action routines */ static PyObject *IRIRef; static PyObject *Bindings; static PyObject *Query; static PyObject *QName; static PyObject *GraphPattern; static PyObject *Variable; static PyObject *FunctionLibrary; static PyObject *Triples; static PyObject *Resource; static PyObject *Filter; static PyObject *Expression; static PyObject *BooleanOperators; static PyObject *SolutionModifier; static PyObject *rdflib; static PyObject *RDF; /* token definitions */ #define UNION 257 #define QNAME 258 #define QNAME_NS 259 #define Q_IRI_REF 260 #define BLANK_NODE_LABEL 261 #define VARNAME 262 #define PREFIX 263 #define ASTERISK 264 #define DOT 265 #define QUESTION_MARK 266 #define DOLLAR 267 #define BASE 268 #define SELECT 269 #define DISTINCT 270 #define FROM 271 #define NAMED 272 #define OPTIONAL 273 #define FILTER 274 #define GRAPH 275 #define WHERE 276 #define ORDER 277 #define BY 278 #define ASC 279 #define DESC 280 #define LIMIT 281 #define OFFSET 282 #define STR 283 #define LANG 284 #define LANGMATCHES 285 #define DATATYPE 286 #define isIRI 287 #define isURI 288 #define isLITERAL 289 #define isBLANK 290 #define BOUND 291 #define REGEX 292 #define A 293 #define TRUE 294 #define FALSE 295 #define DOUBLE_AMPERSAND 296 #define DOUBLE_PIPE 297 #define BANG 298 #define DOUBLE_HAT 299 #define COMMA 300 #define FORWARDSLASH 301 #define LEFT_PAREN 302 #define RIGHT_PAREN 303 #define LEFT_SQUARE 304 #define RIGHT_SQUARE 305 #define SEMICOLON 306 #define INTEGER 307 #define DECIMAL 308 #define DOUBLE 309 #define STRING_LITERAL 310 #define STRING_LITERAL_LONG 311 #define NIL 312 #define ANON 313 #define LANGTAG 314 #define LEFT_CURLY 315 #define RIGHT_CURLY 316 #define PLUS 317 #define MINUS 318 #define EQUALITY_OP 319 #define NOT_EQUAL 320 #define LESS_THAN 321 #define GREATER_THAN 322 #define LESS_THAN_EQUAL 323 #define GREATER_THAN_EQUAL 324 /* vector mapping lexer token numbers into internal token numbers */ static const int token_translations[] = {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70}; #define YYTRANSLATE(x) ((unsigned)(x) <= 324 ? token_translations[x] : 129) /* vector of items of all rules. */ static const int rhs_tokens[] = {0, 73, 72, 0, 72, 0, 77, 0, 76, 74, 0, 76, 0, 74, 0, 75, 0, 74, 75, 0, 9, 5, 6, 0, 14, 6, 0, 15, 78, 84, 85, 0, 15, 78, 82, 84, 85, 0, 15, 16, 78, 84, 85, 0, 15, 16, 78, 82, 84, 85, 0, 79, 0, 10, 0, 122, 0, 79, 122, 0, 6, 0, 81, 0, 4, 5, 0, 83, 0, 82, 83, 0, 17, 80, 0, 17, 18, 80, 0, 22, 91, 0, 91, 0, 0, 86, 0, 86, 89, 0, 86, 89, 90, 0, 89, 90, 0, 86, 90, 0, 90, 0, 89, 0, 23, 24, 87, 0, 88, 0, 87, 88, 0, 25, 48, 95, 49, 0, 26, 48, 95, 49, 0, 107, 0, 48, 95, 49, 0, 122, 0, 27, 124, 0, 28, 124, 0, 61, 92, 62, 0, 110, 0, 110, 93, 0, 110, 93, 92, 0, 110, 93, 11, 92, 0, 93, 0, 93, 92, 0, 93, 11, 92, 0, 19, 91, 0, 91, 94, 0, 21, 122, 91, 0, 21, 128, 91, 0, 21, 80, 91, 0, 3, 91, 0, 94, 3, 91, 0, 97, 0, 97, 96, 0, 43, 97, 0, 96, 43, 97, 0, 99, 98, 0, 99, 0, 42, 99, 0, 98, 42, 99, 0, 100, 0, 100, 65, 100, 0, 100, 66, 100, 0, 100, 67, 100, 0, 100, 68, 100, 0, 100, 69, 100, 0, 100, 70, 100, 0, 102, 0, 102, 101, 0, 63, 102, 0, 64, 102, 0, 101, 64, 102, 0, 101, 63, 102, 0, 104, 0, 104, 103, 0, 10, 104, 0, 47, 104, 0, 103, 10, 104, 0, 103, 47, 104, 0, 44, 109, 0, 63, 109, 0, 64, 109, 0, 109, 0, 29, 48, 95, 49, 0, 30, 48, 95, 49, 0, 31, 48, 95, 46, 95, 49, 0, 32, 48, 95, 49, 0, 37, 48, 95, 49, 0, 33, 48, 95, 49, 0, 34, 48, 95, 49, 0, 36, 48, 95, 49, 0, 35, 48, 95, 49, 0, 106, 0, 38, 48, 95, 46, 95, 49, 0, 38, 48, 95, 46, 95, 46, 95, 49, 0, 80, 48, 108, 49, 0, 80, 48, 58, 49, 0, 95, 0, 108, 46, 95, 0, 48, 95, 49, 0, 105, 0, 80, 0, 107, 0, 125, 0, 124, 0, 126, 0, 128, 0, 122, 0, 112, 0, 112, 111, 11, 110, 0, 112, 111, 110, 0, 111, 11, 110, 0, 111, 110, 0, 20, 48, 95, 49, 0, 20, 105, 0, 20, 107, 0, 114, 113, 0, 114, 0, 11, 0, 11, 114, 0, 113, 11, 0, 113, 11, 114, 0, 122, 115, 0, 123, 115, 0, 120, 0, 50, 115, 51, 0, 120, 115, 0, 50, 115, 51, 115, 0, 118, 116, 0, 118, 116, 52, 115, 0, 118, 116, 52, 0, 117, 0, 117, 46, 116, 0, 122, 0, 119, 0, 123, 0, 122, 0, 80, 0, 39, 0, 120, 0, 50, 115, 51, 0, 48, 121, 49, 0, 117, 0, 121, 117, 0, 8, 0, 80, 0, 125, 0, 124, 0, 63, 124, 0, 64, 124, 0, 126, 0, 128, 0, 58, 0, 53, 0, 54, 0, 55, 0, 127, 0, 127, 60, 0, 127, 45, 80, 0, 40, 0, 41, 0, 56, 0, 57, 0, 59, 0, 7, 0}; /* vector of line numbers and filename of all rules */ static const char* const rule_info[] = { ": line 0", "SPARQL.bgen: line 39", "SPARQL.bgen: line 49", "SPARQL.bgen: line 62", "SPARQL.bgen: line 79", "SPARQL.bgen: line 89", "SPARQL.bgen: line 98", "SPARQL.bgen: line 111", "SPARQL.bgen: line 122", "SPARQL.bgen: line 140", "SPARQL.bgen: line 156", "SPARQL.bgen: line 171", "SPARQL.bgen: line 183", "SPARQL.bgen: line 196", "SPARQL.bgen: line 209", "SPARQL.bgen: line 228", "SPARQL.bgen: line 231", "SPARQL.bgen: line 238", "SPARQL.bgen: line 249", "SPARQL.bgen: line 267", "SPARQL.bgen: line 276", "SPARQL.bgen: line 284", "SPARQL.bgen: line 305", "SPARQL.bgen: line 316", "SPARQL.bgen: line 334", "SPARQL.bgen: line 344", "SPARQL.bgen: line 360", "SPARQL.bgen: line 370", "SPARQL.bgen: line 379", "SPARQL.bgen: line 387", "SPARQL.bgen: line 390", "SPARQL.bgen: line 394", "SPARQL.bgen: line 399", "SPARQL.bgen: line 403", "SPARQL.bgen: line 407", "SPARQL.bgen: line 410", "SPARQL.bgen: line 418", "SPARQL.bgen: line 427", "SPARQL.bgen: line 438", "SPARQL.bgen: line 456", "SPARQL.bgen: line 462", "SPARQL.bgen: line 468", "SPARQL.bgen: line 471", "SPARQL.bgen: line 476", "SPARQL.bgen: line 484", "SPARQL.bgen: line 493", "SPARQL.bgen: line 503", "SPARQL.bgen: line 534", "SPARQL.bgen: line 543", "SPARQL.bgen: line 553", "SPARQL.bgen: line 564", "SPARQL.bgen: line 576", "SPARQL.bgen: line 585", "SPARQL.bgen: line 595", "SPARQL.bgen: line 650", "SPARQL.bgen: line 660", "SPARQL.bgen: line 673", "SPARQL.bgen: line 684", "SPARQL.bgen: line 695", "SPARQL.bgen: line 713", "SPARQL.bgen: line 725", "SPARQL.bgen: line 747", "SPARQL.bgen: line 759", "SPARQL.bgen: line 776", "SPARQL.bgen: line 788", "SPARQL.bgen: line 807", "SPARQL.bgen: line 820", "SPARQL.bgen: line 836", "SPARQL.bgen: line 848", "SPARQL.bgen: line 877", "SPARQL.bgen: line 880", "SPARQL.bgen: line 885", "SPARQL.bgen: line 890", "SPARQL.bgen: line 895", "SPARQL.bgen: line 900", "SPARQL.bgen: line 905", "SPARQL.bgen: line 915", "SPARQL.bgen: line 918", "SPARQL.bgen: line 926", "SPARQL.bgen: line 938", "SPARQL.bgen: line 950", "SPARQL.bgen: line 964", "SPARQL.bgen: line 983", "SPARQL.bgen: line 986", "SPARQL.bgen: line 994", "SPARQL.bgen: line 1006", "SPARQL.bgen: line 1018", "SPARQL.bgen: line 1032", "SPARQL.bgen: line 1051", "SPARQL.bgen: line 1055", "SPARQL.bgen: line 1059", "SPARQL.bgen: line 1063", "SPARQL.bgen: line 1083", "SPARQL.bgen: line 1089", "SPARQL.bgen: line 1095", "SPARQL.bgen: line 1103", "SPARQL.bgen: line 1109", "SPARQL.bgen: line 1115", "SPARQL.bgen: line 1121", "SPARQL.bgen: line 1127", "SPARQL.bgen: line 1133", "SPARQL.bgen: line 1139", "SPARQL.bgen: line 1147", "SPARQL.bgen: line 1155", "SPARQL.bgen: line 1170", "SPARQL.bgen: line 1182", "SPARQL.bgen: line 1204", "SPARQL.bgen: line 1216", "SPARQL.bgen: line 1240", "SPARQL.bgen: line 1245", "SPARQL.bgen: line 1248", "SPARQL.bgen: line 1251", "SPARQL.bgen: line 1254", "SPARQL.bgen: line 1257", "SPARQL.bgen: line 1260", "SPARQL.bgen: line 1263", "SPARQL.bgen: line 1266", "SPARQLTurtleSuperSet.bgen.frag: line 6", "SPARQLTurtleSuperSet.bgen.frag: line 9", "SPARQLTurtleSuperSet.bgen.frag: line 15", "SPARQLTurtleSuperSet.bgen.frag: line 20", "SPARQLTurtleSuperSet.bgen.frag: line 25", "SPARQLTurtleSuperSet.bgen.frag: line 36", "SPARQLTurtleSuperSet.bgen.frag: line 42", "SPARQLTurtleSuperSet.bgen.frag: line 46", "SPARQLTurtleSuperSet.bgen.frag: line 56", "SPARQLTurtleSuperSet.bgen.frag: line 69", "SPARQLTurtleSuperSet.bgen.frag: line 84", "SPARQLTurtleSuperSet.bgen.frag: line 87", "SPARQLTurtleSuperSet.bgen.frag: line 99", "SPARQLTurtleSuperSet.bgen.frag: line 109", "SPARQLTurtleSuperSet.bgen.frag: line 140", "SPARQLTurtleSuperSet.bgen.frag: line 150", "SPARQLTurtleSuperSet.bgen.frag: line 160", "SPARQLTurtleSuperSet.bgen.frag: line 163", "SPARQLTurtleSuperSet.bgen.frag: line 174", "SPARQLTurtleSuperSet.bgen.frag: line 184", "SPARQLTurtleSuperSet.bgen.frag: line 204", "SPARQLTurtleSuperSet.bgen.frag: line 215", "SPARQLTurtleSuperSet.bgen.frag: line 229", "SPARQLTurtleSuperSet.bgen.frag: line 248", "SPARQLTurtleSuperSet.bgen.frag: line 259", "SPARQLTurtleSuperSet.bgen.frag: line 282", "SPARQLTurtleSuperSet.bgen.frag: line 285", "SPARQLTurtleSuperSet.bgen.frag: line 288", "SPARQLTurtleSuperSet.bgen.frag: line 300", "SPARQLTurtleSuperSet.bgen.frag: line 303", "SPARQLTurtleSuperSet.bgen.frag: line 306", "SPARQLTurtleSuperSet.bgen.frag: line 324", "SPARQLTurtleSuperSet.bgen.frag: line 327", "SPARQLTurtleSuperSet.bgen.frag: line 345", "SPARQLTurtleSuperSet.bgen.frag: line 354", "SPARQLTurtleSuperSet.bgen.frag: line 365", "SPARQLTurtleSuperSet.bgen.frag: line 383", "SPARQLTurtleSuperSet.bgen.frag: line 406", "SPARQLTurtleSuperSet.bgen.frag: line 409", "SPARQLTurtleSuperSet.bgen.frag: line 412", "SPARQLTurtleSuperSet.bgen.frag: line 415", "SPARQLTurtleSuperSet.bgen.frag: line 419", "SPARQLTurtleSuperSet.bgen.frag: line 432", "SPARQLTurtleSuperSet.bgen.frag: line 435", "SPARQLTurtleSuperSet.bgen.frag: line 438", "SPARQLTurtleSuperSet.bgen.frag: line 450", "SPARQLTurtleSuperSet.bgen.frag: line 462", "SPARQLTurtleSuperSet.bgen.frag: line 474", "SPARQLTurtleSuperSet.bgen.frag: line 490", "SPARQLTurtleSuperSet.bgen.frag: line 493", "SPARQLTurtleSuperSet.bgen.frag: line 505", "SPARQLTurtleSuperSet.bgen.frag: line 521", "SPARQLTurtleSuperSet.bgen.frag: line 524", "SPARQLTurtleSuperSet.bgen.frag: line 535", "SPARQLTurtleSuperSet.bgen.frag: line 538", "SPARQLTurtleSuperSet.bgen.frag: line 546", "SPARQLTurtleSuperSet.bgen.frag: line 555", }; /* vector of string-names indexed by token number */ static const char* const token_names[] = { "", "error", "$undefined.", "UNION", "QNAME", "QNAME_NS", "Q_IRI_REF", "BLANK_NODE_LABEL", "VARNAME", "PREFIX", "ASTERISK", "DOT", "QUESTION_MARK", "DOLLAR", "BASE", "SELECT", "DISTINCT", "FROM", "NAMED", "OPTIONAL", "FILTER", "GRAPH", "WHERE", "ORDER", "BY", "ASC", "DESC", "LIMIT", "OFFSET", "STR", "LANG", "LANGMATCHES", "DATATYPE", "isIRI", "isURI", "isLITERAL", "isBLANK", "BOUND", "REGEX", "A", "TRUE", "FALSE", "DOUBLE_AMPERSAND", "DOUBLE_PIPE", "BANG", "DOUBLE_HAT", "COMMA", "FORWARDSLASH", "LEFT_PAREN", "RIGHT_PAREN", "LEFT_SQUARE", "RIGHT_SQUARE", "SEMICOLON", "INTEGER", "DECIMAL", "DOUBLE", "STRING_LITERAL", "STRING_LITERAL_LONG", "NIL", "ANON", "LANGTAG", "LEFT_CURLY", "RIGHT_CURLY", "PLUS", "MINUS", "EQUALITY_OP", "NOT_EQUAL", "LESS_THAN", "GREATER_THAN", "LESS_THAN_EQUAL", "GREATER_THAN_EQUAL", "Query", "QueryTypes", "Prolog", "PrefixDeclList", "PrefixDecl", "BaseDecl", "SelectQuery", "VAR_REFERENCES", "VariableReferenceList", "IRIref", "QName", "DataSetClauseList", "DataSetClause", "WhereClause", "SolutionModifier", "OrderClause", "OrderConditionList", "OrderCondition", "LimitClause", "OffsetClause", "GroupGraphPattern", "GraphPattern", "GraphPatternNotTriples", "AlternativeGroupGraphPatterns", "ConditionalOrExpression", "ConditionalAndExpressionList", "ConditionalAndExpression", "ValueLogicalList", "RelationalExpression", "AdditiveExpression", "MultiplicativeExpressionList", "MultiplicativeExpression", "UnaryExpressionList", "UnaryExpression", "BuiltInCall", "RegexExpression", "FunctionCall", "ArgumentList", "PrimaryExpression", "FilteredBasicGraphPattern", "Constraint", "Triples", "TriplesSameSubjectList", "TriplesSameSubject", "PropertyList", "ObjectList", "GraphNode", "Verb", "TriplesNode", "Collection", "GraphNodeList", "Var", "GraphTerm", "NumericLiteral", "RDFLiteral", "BooleanLiteral", "String", "BlankNode", "0", }; /* symbol number of symbol that rule derives. */ static const int derives[] = {0, 71, 71, 72, 73, 73, 73, 74, 74, 75, 76, 77, 77, 77, 77, 78, 78, 79, 79, 80, 80, 81, 82, 82, 83, 83, 84, 84, 85, 85, 85, 85, 85, 85, 85, 85, 86, 87, 87, 88, 88, 88, 88, 88, 89, 90, 91, 92, 92, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 94, 94, 95, 95, 96, 96, 97, 97, 98, 98, 99, 99, 99, 99, 99, 99, 99, 100, 100, 101, 101, 101, 101, 102, 102, 103, 103, 103, 103, 104, 104, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 107, 107, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, 110, 110, 110, 111, 111, 111, 112, 112, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 115, 115, 115, 116, 116, 117, 117, 117, 118, 118, 118, 119, 119, 120, 121, 121, 122, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 125, 125, 125, 126, 126, 127, 127, 128, 128}; /* number of symbols composing right hand side of rule. */ static const int rhs_size[] = {0, 2, 1, 1, 2, 1, 1, 1, 2, 3, 2, 4, 5, 5, 6, 1, 1, 1, 2, 1, 1, 2, 1, 2, 2, 3, 2, 1, 0, 1, 2, 3, 2, 2, 1, 1, 3, 1, 2, 4, 4, 1, 3, 1, 2, 2, 3, 1, 2, 3, 4, 1, 2, 3, 2, 2, 3, 3, 3, 2, 3, 1, 2, 2, 3, 2, 1, 2, 3, 1, 3, 3, 3, 3, 3, 3, 1, 2, 2, 2, 3, 3, 1, 2, 2, 2, 3, 3, 2, 2, 2, 1, 4, 4, 6, 4, 4, 4, 4, 4, 4, 1, 6, 8, 4, 4, 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 3, 3, 2, 4, 2, 2, 2, 1, 1, 2, 2, 3, 2, 2, 1, 3, 2, 4, 2, 4, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1}; /* default rule to reduce with in state. 0 means the default is an error. indexed by state number */ static const int default_action[] = {0, 0, 0, 0, 2, 0, 6, 7, 5, 3, 0, 10, 153, 16, 0, 0, 15, 17, 1, 8, 4, 9, 0, 0, 0, 0, 0, 22, 28, 27, 18, 0, 28, 0, 19, 0, 24, 20, 26, 173, 0, 0, 0, 168, 169, 0, 0, 162, 163, 164, 170, 171, 161, 172, 0, 0, 154, 0, 0, 51, 47, 0, 117, 126, 133, 0, 0, 156, 155, 159, 165, 160, 23, 28, 0, 0, 0, 11, 29, 35, 34, 28, 13, 21, 25, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 101, 124, 0, 0, 0, 0, 151, 143, 148, 0, 142, 144, 147, 146, 0, 0, 145, 157, 158, 0, 55, 46, 0, 52, 48, 0, 121, 0, 127, 125, 135, 131, 132, 0, 166, 12, 0, 44, 45, 30, 33, 32, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 61, 66, 69, 76, 82, 109, 111, 91, 116, 113, 112, 114, 115, 0, 58, 56, 57, 0, 150, 152, 134, 137, 140, 59, 0, 53, 0, 49, 120, 0, 119, 128, 129, 167, 0, 0, 0, 36, 37, 41, 43, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 88, 0, 89, 90, 122, 0, 62, 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 83, 0, 106, 0, 149, 136, 139, 0, 60, 50, 118, 130, 0, 0, 0, 38, 92, 93, 0, 95, 97, 98, 100, 99, 96, 0, 108, 63, 0, 67, 0, 70, 71, 72, 73, 74, 75, 78, 79, 0, 0, 84, 85, 0, 0, 105, 0, 104, 138, 141, 0, 0, 42, 0, 0, 64, 68, 81, 80, 86, 87, 107, 39, 40, 94, 0, 102, 0, 103, 0, 0, 0}; /* default state to go to after a reduction of a rule. indexed by variable number (lhs token) */ static const int default_goto[] = {299, 4, 5, 6, 7, 8, 9, 15, 16, 156, 37, 26, 27, 28, 77, 78, 195, 196, 79, 80, 57, 58, 59, 119, 157, 216, 158, 218, 159, 160, 227, 161, 230, 162, 163, 99, 164, 233, 165, 60, 61, 62, 128, 63, 113, 179, 180, 114, 106, 64, 108, 166, 66, 167, 168, 169, 70, 170}; /* index in yytable of the portion describing state (indexed by state number) If the value in yytable is positive, we shift the token and go to that state. If the value is negative, it is minus a rule number to reduce by. If the value is zero, the default action from yydefact[s] is used. */ static const int action_idx[] = {78, 36, 1, 39, -32768, 38, 79, -32768, 79, -32768, 104, -32768, -32768, -32768, 89, 16, 109, -32768, -32768, -32768, 79, -32768, 16, 28, 69, 327, 16, -32768, 80, -32768, -32768, 16, 80, 126, -32768, 121, -32768, -32768, -32768, -32768, 69, 596, 20, -32768, -32768, 353, 96, -32768, -32768, -32768, -32768, -32768, -32768, -32768, 115, 115, -32768, 138, 83, 422, -2, 453, 127, 139, 96, 96, 96, -32768, -32768, -32768, -24, -32768, -32768, 80, 132, 115, 115, -32768, 2, 125, -32768, 80, -32768, -32768, -32768, -32768, 123, 128, 134, 135, 137, 143, 148, 151, 158, 165, 491, 169, -32768, -32768, -32768, 69, 69, 69, 96, -32768, -32768, -32768, 530, -32768, -32768, -32768, -32768, 167, 555, -32768, -32768, -32768, 69, 175, -32768, 616, -32768, 641, 702, -32768, 727, 765, 212, -32768, -32768, -32768, 130, -32768, -32768, 90, -32768, -32768, 125, -32768, -32768, -32768, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 1120, 803, 1120, 1120, 169, 178, 181, 183, 220, 98, 10, -32768, -32768, -32768, -32768, -32768, -32768, -32768, -32768, 842, -32768, -32768, -32768, 177, -32768, -32768, 96, 184, 185, -32768, 69, -32768, 903, -32768, -32768, 928, -32768, -32768, 966, -32768, 182, 187, 1004, 90, -32768, -32768, -32768, -32768, 180, 189, 194, 197, 198, 199, 200, 202, 205, 211, -32768, 209, -32768, -32768, -32768, 1004, 216, 1004, 218, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 1004, 101, 1004, 1004, 35, 215, -32768, 63, -32768, -32768, 96, 1043, -32768, -32768, -32768, -32768, 1081, 1081, 217, -32768, -32768, -32768, 1081, -32768, -32768, -32768, -32768, -32768, -32768, 1081, -32768, -32768, 1081, -32768, 1081, -32768, -32768, -32768, -32768, -32768, -32768, -32768, -32768, 1081, 1081, -32768, -32768, 1081, 1081, -32768, 1081, -32768, -32768, -32768, 221, 223, -32768, 224, 73, -32768, -32768, -32768, -32768, -32768, -32768, -32768, -32768, -32768, -32768, 1081, -32768, 225, -32768, 267, 275, -32768}; /* The index in yytable of the portion describing what to do after reducing a rule. The value from yytable is the state to go to. */ static const int goto_idx[] = {-32768, 272, -32768, 284, 17, -32768, -32768, 266, -32768, 25, -32768, 261, 54, 9, -29, -32768, -32768, 99, 219, -74, 269, -47, 236, -32768, 179, -32768, -207, -32768, -192, 176, -32768, -59, -32768, -115, 257, -32768, -40, -32768, 67, -43, 237, -32768, -32768, -125, -50, 64, -35, -32768, -32768, -39, -32768, -3, -36, 118, 81, 129, -32768, 155}; /* A vector filled with portions for different uses. (using action_idx and goto_idx) */ static const int yytable[] = {17, 100, 189, 82, 139, 140, 107, 11, 257, 110, 105, 17, 122, 30, 129, 130, 131, 40, 125, 42, 228, 132, 65, 19, 33, 259, 34, 39, 12, 75, 76, 32, 33, 23, 34, 73, 133, 19, 24, 102, 81, 10, 109, 115, 134, 273, 35, 12, 36, 13, 56, 285, 141, 3, 175, 14, 65, 229, 65, 25, 84, 115, 115, 115, 199, 241, 97, 101, 286, 107, 56, 112, 110, 177, 183, 107, 185, 25, 110, 53, 72, 186, 274, 188, 56, 72, 56, 1, 1, 112, 112, 112, 2, 3, 33, 197, 34, 12, 12, 13, 33, 115, 34, 74, 12, 109, 68, 75, 76, 276, 21, 109, 277, 271, 272, 192, 193, 12, 65, 295, 65, 65, 296, 65, 65, 33, 68, 34, 235, 112, 25, 83, 198, 56, 33, 111, 34, 239, 194, 56, 68, 118, 68, 67, 240, 120, 56, 41, 56, 56, 127, 56, 56, 76, 69, 197, 135, 191, 289, 290, 97, 225, 226, 67, 269, 270, 267, 268, 47, 48, 49, 142, 116, 117, 69, 115, 143, 67, 182, 67, 71, 65, 144, 145, 65, 146, 278, 65, 69, 68, 69, 147, 198, 136, 137, 68, 148, 103, 107, 149, 71, 110, 68, 112, 68, 68, 150, 68, 68, 56, 287, 288, 56, 151, 71, 56, 71, 171, 178, 210, 97, 212, 213, 190, 215, 217, 67, 214, 234, 246, 242, 237, 67, 115, 109, 243, 236, 69, 247, 67, 248, 67, 67, 69, 67, 67, 249, 250, 251, 252, 69, 253, 69, 69, 254, 69, 69, 255, 256, 258, 260, 112, 56, 71, 275, 68, 282, 300, 68, 71, 292, 68, 293, 294, 298, 301, 71, 18, 71, 71, 22, 71, 71, 31, 29, 219, 220, 221, 222, 223, 224, 29, 20, 38, 245, 29, 123, 138, 98, 126, 29, 279, 67, 0, 0, 67, 0, 0, 67, 85, 0, 0, 0, 69, 0, 0, 69, 0, 68, 69, 0, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 33, 211, 34, 39, 12, 0, 0, 0, 71, 0, 0, 71, 0, 0, 71, 40, 41, 42, 0, 232, 0, 0, 0, 0, 67, 0, 33, 0, 34, 39, 12, 0, 0, 0, 0, 69, 43, 44, 0, 172, 173, 174, 244, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 181, 25, 0, 54, 55, 71, 43, 44, 261, 262, 263, 264, 265, 266, 45, 0, 104, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 0, 0, 0, 280, 281, 0, 0, 0, 33, 283, 34, 39, 12, 0, 0, 121, 284, 0, 0, 0, 0, 0, 0, 40, 41, 42, 0, 0, 0, 0, 0, 0, 0, 238, 0, 0, 0, 291, 0, 33, 0, 34, 39, 12, 43, 44, 124, 0, 0, 0, 0, 0, 45, 0, 46, 41, 297, 47, 48, 49, 50, 51, 52, 53, 0, 25, 0, 54, 55, 0, 0, 0, 0, 0, 0, 43, 44, 33, 0, 34, 39, 12, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 0, 43, 44, 0, 33, 152, 34, 39, 12, 153, 0, 0, 0, 0, 47, 48, 49, 50, 51, 0, 53, 0, 0, 0, 154, 155, 0, 0, 0, 33, 0, 34, 39, 12, 0, 0, 0, 0, 0, 0, 43, 44, 0, 0, 0, 0, 0, 0, 45, 176, 104, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 43, 44, 0, 0, 0, 33, 0, 34, 45, 0, 104, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 33, 0, 34, 39, 12, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 40, 41, 42, 0, 0, 0, 0, 0, 0, 96, 33, 0, 34, 39, 12, 0, 0, 184, 0, 0, 0, 43, 44, 0, 0, 40, 41, 42, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 25, 0, 54, 55, 43, 44, 0, 0, 0, 0, 0, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 25, 0, 54, 55, 33, 0, 34, 39, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 33, 0, 34, 39, 12, 0, 0, 187, 0, 0, 0, 43, 44, 0, 0, 0, 41, 0, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 43, 44, 33, 0, 34, 39, 12, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 44, 33, 0, 34, 39, 12, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 0, 43, 44, 0, 33, 152, 34, 39, 12, 153, 0, 0, 0, 0, 47, 48, 49, 50, 51, 0, 53, 0, 0, 0, 154, 155, 0, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 0, 43, 44, 0, 0, 152, 0, 0, 0, 153, 0, 0, 0, 0, 47, 48, 49, 50, 51, 231, 53, 0, 0, 0, 154, 155, 33, 0, 34, 39, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 41, 42, 0, 0, 0, 0, 0, 0, 0, 33, 0, 34, 39, 12, 0, 0, 0, 0, 0, 0, 43, 44, 0, 0, 0, 41, 0, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 25, 0, 54, 55, 43, 44, 33, 0, 34, 39, 12, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 44, 33, 0, 34, 39, 12, 0, 45, 0, 46, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 0, 43, 44, 0, 33, 152, 34, 39, 12, 153, 0, 0, 0, 0, 47, 48, 49, 50, 51, 0, 53, 0, 0, 0, 154, 155, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 44, 33, 0, 34, 39, 12, 0, 45, 0, 104, 0, 0, 47, 48, 49, 50, 51, 52, 53, 0, 0, 0, 54, 55, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 0, 43, 44, 0, 33, 152, 34, 39, 12, 153, 0, 0, 0, 0, 47, 48, 49, 50, 51, 0, 53, 0, 0, 0, 154, 155, 0, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 0, 43, 44, 0, 0, 0, 0, 0, 0, 153, 0, 0, 0, 0, 47, 48, 49, 50, 51, 0, 53}; /* a vector indexed in parallel with yytable. It indicates the bounds of the portion you are trying to examine. */ static const int yycheck[] = {3, 41, 127, 32, 78, 79, 45, 6, 215, 45, 45, 14, 59, 16, 64, 65, 66, 19, 61, 21, 10, 45, 25, 6, 4, 217, 6, 7, 8, 27, 28, 22, 4, 17, 6, 26, 60, 20, 22, 42, 31, 5, 45, 46, 73, 10, 18, 8, 23, 10, 25, 258, 81, 15, 104, 16, 59, 47, 61, 61, 35, 64, 65, 66, 138, 190, 41, 42, 260, 108, 45, 46, 108, 108, 121, 114, 123, 61, 114, 59, 26, 124, 47, 126, 59, 31, 61, 9, 9, 64, 65, 66, 14, 15, 4, 135, 6, 8, 8, 10, 4, 104, 6, 23, 8, 108, 25, 27, 28, 46, 6, 114, 49, 228, 229, 25, 26, 8, 121, 46, 123, 124, 49, 126, 127, 4, 45, 6, 178, 104, 61, 5, 135, 108, 4, 39, 6, 184, 48, 114, 59, 3, 61, 25, 187, 62, 121, 20, 123, 124, 11, 126, 127, 28, 25, 195, 24, 132, 273, 274, 135, 63, 64, 45, 63, 64, 225, 226, 53, 54, 55, 48, 54, 55, 45, 178, 48, 59, 3, 61, 25, 184, 48, 48, 187, 48, 236, 190, 59, 108, 61, 48, 195, 75, 76, 114, 48, 42, 237, 48, 45, 237, 121, 178, 123, 124, 48, 126, 127, 184, 269, 270, 187, 48, 59, 190, 61, 48, 51, 152, 195, 154, 155, 11, 43, 42, 108, 49, 51, 49, 48, 46, 114, 236, 237, 48, 52, 108, 49, 121, 46, 123, 124, 114, 126, 127, 49, 49, 49, 49, 121, 49, 123, 124, 49, 126, 127, 46, 49, 43, 42, 236, 237, 108, 49, 184, 49, 0, 187, 114, 49, 190, 49, 49, 49, 0, 121, 5, 123, 124, 14, 126, 127, 22, 15, 65, 66, 67, 68, 69, 70, 22, 8, 24, 195, 26, 60, 78, 41, 62, 31, 237, 184, -1, -1, 187, -1, -1, 190, 40, -1, -1, -1, 184, -1, -1, 187, -1, 237, 190, -1, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 4, 153, 6, 7, 8, -1, -1, -1, 184, -1, -1, 187, -1, -1, 190, 19, 20, 21, -1, 171, -1, -1, -1, -1, 237, -1, 4, -1, 6, 7, 8, -1, -1, -1, -1, 237, 40, 41, -1, 101, 102, 103, 194, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, 118, 61, -1, 63, 64, 237, 40, 41, 219, 220, 221, 222, 223, 224, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, -1, -1, -1, 242, 243, -1, -1, -1, 4, 248, 6, 7, 8, -1, -1, 11, 255, -1, -1, -1, -1, -1, -1, 19, 20, 21, -1, -1, -1, -1, -1, -1, -1, 182, -1, -1, -1, 276, -1, 4, -1, 6, 7, 8, 40, 41, 11, -1, -1, -1, -1, -1, 48, -1, 50, 20, 295, 53, 54, 55, 56, 57, 58, 59, -1, 61, -1, 63, 64, -1, -1, -1, -1, -1, -1, 40, 41, 4, -1, 6, 7, 8, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, -1, -1, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -1, 40, 41, -1, 4, 44, 6, 7, 8, 48, -1, -1, -1, -1, 53, 54, 55, 56, 57, -1, 59, -1, -1, -1, 63, 64, -1, -1, -1, 4, -1, 6, 7, 8, -1, -1, -1, -1, -1, -1, 40, 41, -1, -1, -1, -1, -1, -1, 48, 49, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, 40, 41, -1, -1, -1, 4, -1, 6, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, 4, -1, 6, 7, 8, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 19, 20, 21, -1, -1, -1, -1, -1, -1, 48, 4, -1, 6, 7, 8, -1, -1, 11, -1, -1, -1, 40, 41, -1, -1, 19, 20, 21, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, 61, -1, 63, 64, 40, 41, -1, -1, -1, -1, -1, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, 61, -1, 63, 64, 4, -1, 6, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, 4, -1, 6, 7, 8, -1, -1, 11, -1, -1, -1, 40, 41, -1, -1, -1, 20, -1, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, 40, 41, 4, -1, 6, 7, 8, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 41, 4, -1, 6, 7, 8, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, -1, -1, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -1, 40, 41, -1, 4, 44, 6, 7, 8, 48, -1, -1, -1, -1, 53, 54, 55, 56, 57, -1, 59, -1, -1, -1, 63, 64, -1, -1, -1, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -1, 40, 41, -1, -1, 44, -1, -1, -1, 48, -1, -1, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, 4, -1, 6, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 19, 20, 21, -1, -1, -1, -1, -1, -1, -1, 4, -1, 6, 7, 8, -1, -1, -1, -1, -1, -1, 40, 41, -1, -1, -1, 20, -1, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, 61, -1, 63, 64, 40, 41, 4, -1, 6, 7, 8, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 41, 4, -1, 6, 7, 8, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, -1, -1, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -1, 40, 41, -1, 4, 44, 6, 7, 8, 48, -1, -1, -1, -1, 53, 54, 55, 56, 57, -1, 59, -1, -1, -1, 63, 64, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, 41, 4, -1, 6, 7, 8, -1, 48, -1, 50, -1, -1, 53, 54, 55, 56, 57, 58, 59, -1, -1, -1, 63, 64, -1, -1, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -1, 40, 41, -1, 4, 44, 6, 7, 8, 48, -1, -1, -1, -1, 53, 54, 55, 56, 57, -1, 59, -1, -1, -1, 63, 64, -1, -1, -1, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, -1, 40, 41, -1, -1, -1, -1, -1, -1, 48, -1, -1, -1, -1, 53, 54, 55, 56, 57, -1, 59}; #define YYLAST 1179 #define YYFINAL 301 #define YYFLAG -32768 #define YYNTBASE 71 #define LEXER_OP_FAILURE 0 #define LEXER_OP_SUCCESS 1 #define LEXER_OP_BOL 2 #define LEXER_OP_EOL 3 #define LEXER_OP_EOF 4 #define LEXER_OP_ANY 5 #define LEXER_OP_LITERAL 6 #define LEXER_OP_NOT_LITERAL 7 #define LEXER_OP_CHARSET 8 #define LEXER_OP_NOT_CHARSET 9 #define LEXER_OP_ASSERT 10 #define LEXER_OP_BRANCH 11 #define LEXER_OP_REPEAT 12 #define LEXER_OP_REPEAT_RANGE 13 #define LEXER_CHARSET_FAILURE 0 #define LEXER_CHARSET_LITERAL 1 #define LEXER_CHARSET_RANGE 2 #define LEXER_CHARSET_SMALL 3 #define LEXER_CHARSET_BIG 4 #define LEXER_INITIAL 1 #define LEXER_START_STATE LEXER_INITIAL static unsigned char lexer_charsets[21][32] = { { 0x00, 0x24, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x40, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x07, 0xFE, 0xFF, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x07, 0xFE, 0xFF, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x26, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0xFF, 0xFF, 0xFF, 0xFF, 0x81, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }, { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }, { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }, { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, }; static unsigned char lexer_blockmaps[3][256] = { { 0x08, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x09, 0x09, 0x09, 0x09, 0x0B, 0x09, 0x0C }, { 0x0A, 0x0A, 0x0A, 0x0F, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A }, { 0x10, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x11, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A }, }; static const Py_UCS4 lexer_INITIAL_pattern_0[] = { 11, 28, 6, 39, 12, 21, 0, 11, 7, 9, 4, 3, 0, 0, 1, 9, 6, 92, 8, 4, 3, 1, 0, 1, 0, 1, 6, 39, 1, 28, 6, 34, 12, 21, 0, 11, 7, 9, 4, 3, 0, 0, 1, 9, 6, 92, 8, 4, 3, 1, 0, 1, 0, 1, 6, 34, 1, 0, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_1[] = { 11, 54, 6, 39, 6, 39, 6, 39, 12, 39, 0, 11, 9, 6, 32, 9, 4, 3, 2, 0, 1, 9, 6, 92, 8, 4, 3, 1, 0, 1, 6, 6, 39, 7, 39, 1, 10, 6, 39, 6, 39, 7, 39, 6, 32, 1, 0, 1, 6, 39, 6, 39, 6, 39, 1, 58, 6, 34, 6, 34, 6, 34, 6, 32, 12, 41, 0, 11, 9, 6, 32, 9, 4, 3, 3, 0, 1, 9, 6, 92, 8, 4, 3, 1, 0, 1, 6, 6, 34, 7, 34, 1, 12, 6, 39, 6, 39, 6, 34, 7, 34, 6, 32, 1, 0, 1, 6, 34, 6, 34, 6, 34, 1, 0, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_2[] = { 6, 64, 12, 8, 1, 8, 4, 3, 4, 0, 1, 12, 14, 0, 6, 45, 12, 8, 1, 8, 4, 3, 5, 0, 1, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_3[] = { 6, 40, 12, 8, 0, 8, 4, 3, 6, 0, 1, 6, 41, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_4[] = { 6, 91, 12, 8, 0, 8, 4, 3, 6, 0, 1, 6, 93, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_5[] = { 6, 60, 12, 8, 0, 9, 4, 3, 7, 0, 1, 6, 62, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_6[] = { 13, 124, 0, 1, 8, 4, 4, 0, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1, 6, 58, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_7[] = { 13, 124, 0, 1, 8, 4, 4, 0, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1, 6, 58, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_8[] = { 6, 95, 6, 58, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_9[] = { 8, 4, 3, 18, 0, 11, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 0, 12, 34, 0, 11, 7, 8, 4, 4, 2, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 0, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_10[] = { 6, 64, 12, 8, 1, 8, 4, 3, 4, 0, 1, 12, 14, 0, 6, 45, 12, 8, 1, 8, 4, 3, 5, 0, 1, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_11[] = { 12, 8, 1, 8, 4, 3, 14, 0, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_12[] = { 13, 124, 0, 1, 8, 4, 4, 0, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1, 6, 58, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_13[] = { 13, 124, 0, 1, 8, 4, 4, 0, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1, 6, 58, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 13, 114, 0, 1, 12, 60, 0, 11, 4, 6, 46, 1, 51, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 0, 1, 11, 7, 8, 4, 3, 13, 0, 1, 15, 11, 4, 6, 95, 1, 7, 8, 4, 4, 0, 0, 1, 0, 1, 7, 8, 4, 3, 14, 0, 1, 9, 8, 4, 4, 1, 0, 6, 32, 1, 9, 6, 32, 8, 4, 4, 2, 0, 1, 0, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_14[] = { 11, 22, 12, 8, 1, 8, 4, 3, 14, 0, 1, 6, 46, 12, 8, 0, 8, 4, 3, 14, 0, 1, 1, 13, 6, 46, 12, 8, 1, 8, 4, 3, 14, 0, 1, 1, 0, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_15[] = { 11, 46, 12, 8, 1, 8, 4, 3, 14, 0, 1, 6, 46, 12, 8, 0, 8, 4, 3, 14, 0, 1, 8, 4, 3, 19, 0, 13, 9, 0, 1, 8, 4, 3, 20, 0, 1, 12, 8, 1, 8, 4, 3, 14, 0, 1, 1, 37, 6, 46, 12, 8, 1, 8, 4, 3, 14, 0, 1, 8, 4, 3, 19, 0, 13, 9, 0, 1, 8, 4, 3, 20, 0, 1, 12, 8, 1, 8, 4, 3, 14, 0, 1, 1, 35, 12, 8, 1, 8, 4, 3, 14, 0, 1, 8, 4, 3, 19, 0, 13, 9, 0, 1, 8, 4, 3, 20, 0, 1, 12, 8, 1, 8, 4, 3, 14, 0, 1, 1, 0, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_16[] = { 12, 8, 1, 8, 4, 3, 6, 0, 1, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_17[] = { 6, 85, 6, 78, 6, 73, 6, 79, 6, 78, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_18[] = { 6, 66, 6, 65, 6, 83, 6, 69, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_19[] = { 6, 80, 6, 82, 6, 69, 6, 70, 6, 73, 6, 88, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_20[] = { 6, 83, 6, 69, 6, 76, 6, 69, 6, 67, 6, 84, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_21[] = { 6, 68, 6, 73, 6, 83, 6, 84, 6, 73, 6, 78, 6, 67, 6, 84, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_22[] = { 6, 70, 6, 82, 6, 79, 6, 77, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_23[] = { 6, 78, 6, 65, 6, 77, 6, 69, 6, 68, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_24[] = { 6, 79, 6, 80, 6, 84, 6, 73, 6, 79, 6, 78, 6, 65, 6, 76, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_25[] = { 6, 70, 6, 73, 6, 76, 6, 84, 6, 69, 6, 82, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_26[] = { 6, 71, 6, 82, 6, 65, 6, 80, 6, 72, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_27[] = { 6, 87, 6, 72, 6, 69, 6, 82, 6, 69, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_28[] = { 6, 79, 6, 82, 6, 68, 6, 69, 6, 82, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_29[] = { 6, 66, 6, 89, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_30[] = { 6, 65, 6, 83, 6, 67, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_31[] = { 6, 68, 6, 69, 6, 83, 6, 67, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_32[] = { 6, 76, 6, 73, 6, 77, 6, 73, 6, 84, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_33[] = { 6, 79, 6, 70, 6, 70, 6, 83, 6, 69, 6, 84, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_34[] = { 6, 83, 6, 84, 6, 82, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_35[] = { 6, 76, 6, 65, 6, 78, 6, 71, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_36[] = { 6, 76, 6, 65, 6, 78, 6, 71, 6, 77, 6, 65, 6, 84, 6, 67, 6, 72, 6, 69, 6, 83, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_37[] = { 6, 68, 6, 65, 6, 84, 6, 65, 6, 84, 6, 89, 6, 80, 6, 69, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_38[] = { 6, 105, 6, 115, 6, 73, 6, 82, 6, 73, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_39[] = { 6, 105, 6, 115, 6, 85, 6, 82, 6, 73, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_40[] = { 6, 105, 6, 115, 6, 66, 6, 76, 6, 65, 6, 78, 6, 75, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_41[] = { 6, 105, 6, 115, 6, 76, 6, 73, 6, 84, 6, 69, 6, 82, 6, 65, 6, 76, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_42[] = { 6, 66, 6, 79, 6, 85, 6, 78, 6, 68, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_43[] = { 6, 82, 6, 69, 6, 71, 6, 69, 6, 88, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_44[] = { 6, 116, 6, 114, 6, 117, 6, 101, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_45[] = { 6, 102, 6, 97, 6, 108, 6, 115, 6, 101, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_46[] = { 6, 97, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_47[] = { 6, 45, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_48[] = { 6, 43, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_49[] = { 6, 38, 6, 38, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_50[] = { 6, 124, 6, 124, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_51[] = { 6, 33, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_52[] = { 6, 94, 6, 94, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_53[] = { 6, 44, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_54[] = { 6, 63, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_55[] = { 6, 36, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_56[] = { 6, 47, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_57[] = { 6, 40, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_58[] = { 6, 41, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_59[] = { 6, 91, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_60[] = { 6, 93, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_61[] = { 6, 61, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_62[] = { 6, 33, 6, 61, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_63[] = { 6, 60, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_64[] = { 6, 62, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_65[] = { 6, 60, 6, 61, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_66[] = { 6, 62, 6, 61, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_67[] = { 6, 59, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_68[] = { 6, 123, 1 }; static const Py_UCS4 lexer_INITIAL_pattern_69[] = { 6, 125, 1 }; static const Py_UCS4 *lexer_INITIAL_patterns[] = { lexer_INITIAL_pattern_0, lexer_INITIAL_pattern_1, lexer_INITIAL_pattern_2, lexer_INITIAL_pattern_3, lexer_INITIAL_pattern_4, lexer_INITIAL_pattern_5, lexer_INITIAL_pattern_6, lexer_INITIAL_pattern_7, lexer_INITIAL_pattern_8, lexer_INITIAL_pattern_9, lexer_INITIAL_pattern_10, lexer_INITIAL_pattern_11, lexer_INITIAL_pattern_12, lexer_INITIAL_pattern_13, lexer_INITIAL_pattern_14, lexer_INITIAL_pattern_15, lexer_INITIAL_pattern_16, lexer_INITIAL_pattern_17, lexer_INITIAL_pattern_18, lexer_INITIAL_pattern_19, lexer_INITIAL_pattern_20, lexer_INITIAL_pattern_21, lexer_INITIAL_pattern_22, lexer_INITIAL_pattern_23, lexer_INITIAL_pattern_24, lexer_INITIAL_pattern_25, lexer_INITIAL_pattern_26, lexer_INITIAL_pattern_27, lexer_INITIAL_pattern_28, lexer_INITIAL_pattern_29, lexer_INITIAL_pattern_30, lexer_INITIAL_pattern_31, lexer_INITIAL_pattern_32, lexer_INITIAL_pattern_33, lexer_INITIAL_pattern_34, lexer_INITIAL_pattern_35, lexer_INITIAL_pattern_36, lexer_INITIAL_pattern_37, lexer_INITIAL_pattern_38, lexer_INITIAL_pattern_39, lexer_INITIAL_pattern_40, lexer_INITIAL_pattern_41, lexer_INITIAL_pattern_42, lexer_INITIAL_pattern_43, lexer_INITIAL_pattern_44, lexer_INITIAL_pattern_45, lexer_INITIAL_pattern_46, lexer_INITIAL_pattern_47, lexer_INITIAL_pattern_48, lexer_INITIAL_pattern_49, lexer_INITIAL_pattern_50, lexer_INITIAL_pattern_51, lexer_INITIAL_pattern_52, lexer_INITIAL_pattern_53, lexer_INITIAL_pattern_54, lexer_INITIAL_pattern_55, lexer_INITIAL_pattern_56, lexer_INITIAL_pattern_57, lexer_INITIAL_pattern_58, lexer_INITIAL_pattern_59, lexer_INITIAL_pattern_60, lexer_INITIAL_pattern_61, lexer_INITIAL_pattern_62, lexer_INITIAL_pattern_63, lexer_INITIAL_pattern_64, lexer_INITIAL_pattern_65, lexer_INITIAL_pattern_66, lexer_INITIAL_pattern_67, lexer_INITIAL_pattern_68, lexer_INITIAL_pattern_69, NULL }; static const Py_UCS4 **lexer_patterns[] = { NULL, lexer_INITIAL_patterns }; static const int lexer_INITIAL_actions[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69 }; static const int *lexer_actions[] = { NULL, lexer_INITIAL_actions }; #if PY_VERSION_HEX < 0x02020000 || !defined(Py_USING_UNICODE) #error "Python 2.2+ with unicode support required" #endif /* Static Definitions */ #define YYEMPTY -2 #define YYERROR -1 #define YYEOF 0 #define YYINITDEPTH 1000 #define LEXER_INITIAL_BACKTRACKS 20 /* Parsing objects */ typedef struct { PyObject_HEAD int verbose; PyObject *dict; } parserobject; typedef struct { PyObject *text; int last; int state; Py_UNICODE *end; Py_UNICODE *position; /* backtracking stack */ int backtracks; Py_UNICODE **positions; int allocated; } lexerobject; static int parser_yylex(parserobject *, lexerobject *, PyObject **); static lexerobject *lexer_new(PyObject *); static void lexer_free(lexerobject *); static int lexer_save_position(lexerobject *); static Py_UNICODE *lexer_restore_position(lexerobject *); static int lexer_charset(parserobject *, Py_UCS4 *, Py_UCS4, int); static int lexer_match(parserobject *, lexerobject *, Py_UCS4 *); static void lexer_error(lexerobject *); static char *unicode_escape(Py_UNICODE *, int); static PyObject *report_error(int state, PyObject *lval, lexerobject *lexer); static void print_reduce(int ruleno); static void print_state_stack(int *stack, int *end); /* Parser Methods */ /* Attempt to use C99 variable argument macros for improved error detection * (just in case). */ #ifdef __STDC__ /* C99 conformance macro */ #define TRACE(...) if (self->verbose > 0) PySys_WriteStderr(__VA_ARGS__) #define REGEX_TRACE(...) if (self->verbose > 1) PySys_WriteStderr(__VA_ARGS__) #else #define TRACE if (self->verbose > 0) PySys_WriteStderr #define REGEX_TRACE if (self->verbose > 1) PySys_WriteStderr #endif static char parse_doc[] = "\ parse(string) -> object\n\ Converts the given string to a parse tree and return the top-most\n\ element of the tree."; static PyObject* parser_parse(register parserobject *self, PyObject *text) { register int yystate; register int yyn; PyObject *yylval = NULL; PyObject *yyval = NULL; int state_stack[YYINITDEPTH]; int *state_ptr; PyObject *value_stack[YYINITDEPTH]; PyObject **value_ptr; int yylen; int yychar = YYEMPTY; /* cause a token to be read */ int yychar1 = 0; lexerobject *lexer; lexer = lexer_new(text); if (lexer == NULL) return NULL; TRACE("Starting parse\n"); /* Initialize stack pointers Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ state_ptr = state_stack - 1; value_ptr = value_stack; yystate = 0; while (1) { /* Push a new state, which is found in yystate. */ /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ *++state_ptr = yystate; TRACE("Entering state %d\n", yystate); /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = action_idx[yystate]; if (yyn == YYFLAG) { yyn = default_action[yystate]; if (yyn == 0) { return report_error(yystate, yylval, lexer); } /* Do a reduction. yyn is the number of a rule to reduce with. */ if (self->verbose) print_reduce(yyn); yylen = rhs_size[yyn]; state_ptr -= yylen; value_ptr -= yylen; if (yylen > 0) yyval = value_ptr[1]; /* Action routines */ switch (yyn) { case 1: { /* from SPARQL.bgen, line 39 * Query: Prolog QueryTypes */ yyval = PyObject_CallMethod(Query, "Query", "OO", value_ptr[1], value_ptr[2]); if (self->verbose) { fprintf(stderr, "--Query("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 2: { /* from SPARQL.bgen, line 49 * Query: QueryTypes */ yyval = PyObject_CallMethod(Query, "Query", "OO", NULL, value_ptr[1]); if (self->verbose) { fprintf(stderr, "--Query("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 4: { /* from SPARQL.bgen, line 79 * Prolog: BaseDecl PrefixDeclList */ yyval = PyObject_CallMethod(Query, "Prolog", "OO", value_ptr[1], value_ptr[2]); if (self->verbose) { fprintf(stderr, "--Prolog("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 5: { /* from SPARQL.bgen, line 89 * Prolog: BaseDecl */ yyval = PyObject_CallMethod(Query, "Prolog", "OO", value_ptr[1], NULL); if (self->verbose) { fprintf(stderr, "--Prolog("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 6: { /* from SPARQL.bgen, line 98 * Prolog: PrefixDeclList */ yyval = PyObject_CallMethod(Query, "Prolog", "OO", NULL, value_ptr[2]); if (self->verbose) { fprintf(stderr, "--Prolog("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 7: { /* from SPARQL.bgen, line 111 * PrefixDeclList: PrefixDecl */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--PrefixDeclList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 8: { /* from SPARQL.bgen, line 122 * PrefixDeclList: PrefixDeclList PrefixDecl */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--PrefixDeclList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 9: { /* from SPARQL.bgen, line 140 * PrefixDecl: PREFIX QNAME_NS Q_IRI_REF */ yyval = PyObject_CallMethod(Bindings, "PrefixDeclaration", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--PrefixDecl("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 10: { /* from SPARQL.bgen, line 156 * BaseDecl: BASE Q_IRI_REF */ yyval = PyObject_CallMethod(Bindings, "BaseDeclaration", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--BaseDecl("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 11: { /* from SPARQL.bgen, line 171 * SelectQuery: SELECT VAR_REFERENCES WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOO", value_ptr[2],NULL,value_ptr[3],value_ptr[4]); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 12: { /* from SPARQL.bgen, line 183 * SelectQuery: SELECT VAR_REFERENCES DataSetClauseList WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOO", value_ptr[2],value_ptr[3],value_ptr[4],value_ptr[5]); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[5], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); Py_DECREF(value_ptr[5]); break; } case 13: { /* from SPARQL.bgen, line 196 * SelectQuery: SELECT DISTINCT VAR_REFERENCES WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOOi", value_ptr[3],NULL,value_ptr[4],value_ptr[5],1); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[5], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); Py_DECREF(value_ptr[5]); break; } case 14: { /* from SPARQL.bgen, line 209 * SelectQuery: SELECT DISTINCT VAR_REFERENCES DataSetClauseList WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOOi", value_ptr[3],value_ptr[4],value_ptr[5],value_ptr[6],1); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[5], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[6], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); Py_DECREF(value_ptr[5]); Py_DECREF(value_ptr[6]); break; } case 17: { /* from SPARQL.bgen, line 238 * VariableReferenceList: Var */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--VariableReferenceList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 18: { /* from SPARQL.bgen, line 249 * VariableReferenceList: VariableReferenceList Var */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--VariableReferenceList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 19: { /* from SPARQL.bgen, line 267 * IRIref: Q_IRI_REF */ yyval = PyObject_CallMethod(IRIRef, "IRIRef", "O",value_ptr[1]); if (self->verbose) { fprintf(stderr, "--IRIref("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 21: { /* from SPARQL.bgen, line 284 * QName: QNAME QNAME_NS */ yyval = PyObject_CallMethod(QName, "QNamePrefix", "O",value_ptr[1]); if (self->verbose) { fprintf(stderr, "--QName("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 22: { /* from SPARQL.bgen, line 305 * DataSetClauseList: DataSetClause */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--DataSetClauseList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 23: { /* from SPARQL.bgen, line 316 * DataSetClauseList: DataSetClauseList DataSetClause */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--DataSetClauseList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 24: { /* from SPARQL.bgen, line 334 * DataSetClause: FROM IRIref */ yyval = PyObject_CallMethod(IRIRef, "RemoteGraph", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--DataSetClause("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 25: { /* from SPARQL.bgen, line 344 * DataSetClause: FROM NAMED IRIref */ yyval = PyObject_CallMethod(IRIRef, "NamedGraph", "O", value_ptr[3]); if (self->verbose) { fprintf(stderr, "--DataSetClause("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 26: { /* from SPARQL.bgen, line 360 * WhereClause: WHERE GroupGraphPattern */ yyval = value_ptr[2]; if (self->verbose) { fprintf(stderr, "--WhereClause("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 28: { /* from SPARQL.bgen, line 379 * SolutionModifier: */ yyval = PyObject_CallMethod(SolutionModifier, "SolutionModifier", ""); if (self->verbose) { fprintf(stderr, "--SolutionModifier("); fprintf(stderr, ")\n"); } break; } case 37: { /* from SPARQL.bgen, line 427 * OrderConditionList: OrderCondition */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--OrderConditionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 38: { /* from SPARQL.bgen, line 438 * OrderConditionList: OrderConditionList OrderCondition */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--OrderConditionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 46: { /* from SPARQL.bgen, line 503 * GroupGraphPattern: LEFT_CURLY GraphPattern RIGHT_CURLY */ yyval = PyObject_CallMethod(GraphPattern, "GroupGraphPattern", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GroupGraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 47: { /* from SPARQL.bgen, line 534 * GraphPattern: FilteredBasicGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "O", value_ptr[1]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 48: { /* from SPARQL.bgen, line 543 * GraphPattern: FilteredBasicGraphPattern GraphPatternNotTriples */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OO", value_ptr[1],value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 49: { /* from SPARQL.bgen, line 553 * GraphPattern: FilteredBasicGraphPattern GraphPatternNotTriples GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", value_ptr[1],value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 50: { /* from SPARQL.bgen, line 564 * GraphPattern: FilteredBasicGraphPattern GraphPatternNotTriples DOT GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", value_ptr[1],value_ptr[2],value_ptr[4]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 51: { /* from SPARQL.bgen, line 576 * GraphPattern: GraphPatternNotTriples */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO",NULL,value_ptr[1],NULL); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 52: { /* from SPARQL.bgen, line 585 * GraphPattern: GraphPatternNotTriples GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", NULL,value_ptr[1],value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 53: { /* from SPARQL.bgen, line 595 * GraphPattern: GraphPatternNotTriples DOT GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", NULL,value_ptr[1],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 54: { /* from SPARQL.bgen, line 650 * GraphPatternNotTriples: OPTIONAL GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "OptionalGraphPattern", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 55: { /* from SPARQL.bgen, line 660 * GraphPatternNotTriples: GroupGraphPattern AlternativeGroupGraphPatterns */ PyList_Append(value_ptr[2], value_ptr[1]); Py_INCREF(value_ptr[2]); yyval = PyObject_CallMethod(GraphPattern, "AlternativeGraphPattern", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 56: { /* from SPARQL.bgen, line 673 * GraphPatternNotTriples: GRAPH Var GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "NamedGraph", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 57: { /* from SPARQL.bgen, line 684 * GraphPatternNotTriples: GRAPH BlankNode GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "NamedGraph", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 58: { /* from SPARQL.bgen, line 695 * GraphPatternNotTriples: GRAPH IRIref GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "NamedGraph", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 59: { /* from SPARQL.bgen, line 713 * AlternativeGroupGraphPatterns: UNION GroupGraphPattern */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--AlternativeGroupGraphPatterns("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 60: { /* from SPARQL.bgen, line 725 * AlternativeGroupGraphPatterns: AlternativeGroupGraphPatterns UNION GroupGraphPattern */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--AlternativeGroupGraphPatterns("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 61: { /* from SPARQL.bgen, line 747 * ConditionalOrExpression: ConditionalAndExpression */ yyval = PyList_New(1); /* Steals a reference */ PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--ConditionalOrExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 62: { /* from SPARQL.bgen, line 759 * ConditionalOrExpression: ConditionalAndExpression ConditionalAndExpressionList */ PyList_Append(value_ptr[2], value_ptr[1]); Py_INCREF(value_ptr[2]); yyval = PyObject_CallMethod(Expression, "ConditionalAndExpressionList", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--ConditionalOrExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 63: { /* from SPARQL.bgen, line 776 * ConditionalAndExpressionList: DOUBLE_PIPE ConditionalAndExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--ConditionalAndExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 64: { /* from SPARQL.bgen, line 788 * ConditionalAndExpressionList: ConditionalAndExpressionList DOUBLE_PIPE ConditionalAndExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--ConditionalAndExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 65: { /* from SPARQL.bgen, line 807 * ConditionalAndExpression: RelationalExpression ValueLogicalList */ PyList_Append(value_ptr[2], value_ptr[1]); Py_INCREF(value_ptr[2]); yyval = value_ptr[2]; if (self->verbose) { fprintf(stderr, "--ConditionalAndExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 66: { /* from SPARQL.bgen, line 820 * ConditionalAndExpression: RelationalExpression */ yyval = PyList_New(1); /* Steals a reference */ PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--ConditionalAndExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 67: { /* from SPARQL.bgen, line 836 * ValueLogicalList: DOUBLE_AMPERSAND RelationalExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--ValueLogicalList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 68: { /* from SPARQL.bgen, line 848 * ValueLogicalList: ValueLogicalList DOUBLE_AMPERSAND RelationalExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--ValueLogicalList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 78: { /* from SPARQL.bgen, line 926 * MultiplicativeExpressionList: PLUS MultiplicativeExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--MultiplicativeExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 79: { /* from SPARQL.bgen, line 938 * MultiplicativeExpressionList: MINUS MultiplicativeExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--MultiplicativeExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 80: { /* from SPARQL.bgen, line 950 * MultiplicativeExpressionList: MultiplicativeExpressionList MINUS MultiplicativeExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--MultiplicativeExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 81: { /* from SPARQL.bgen, line 964 * MultiplicativeExpressionList: MultiplicativeExpressionList PLUS MultiplicativeExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--MultiplicativeExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 84: { /* from SPARQL.bgen, line 994 * UnaryExpressionList: ASTERISK UnaryExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--UnaryExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 85: { /* from SPARQL.bgen, line 1006 * UnaryExpressionList: FORWARDSLASH UnaryExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--UnaryExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 86: { /* from SPARQL.bgen, line 1018 * UnaryExpressionList: UnaryExpressionList ASTERISK UnaryExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--UnaryExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 87: { /* from SPARQL.bgen, line 1032 * UnaryExpressionList: UnaryExpressionList FORWARDSLASH UnaryExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--UnaryExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 104: { /* from SPARQL.bgen, line 1170 * FunctionCall: IRIref LEFT_PAREN ArgumentList RIGHT_PAREN */ yyval = PyObject_CallFunction(FunctionLibrary, "FunctionCall", "OO", value_ptr[1], value_ptr[3]); if (self->verbose) { fprintf(stderr, "--FunctionCall("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 105: { /* from SPARQL.bgen, line 1182 * FunctionCall: IRIref LEFT_PAREN NIL RIGHT_PAREN */ yyval = PyObject_CallFunction(FunctionLibrary, "FunctionCall", "OO", value_ptr[1]); if (self->verbose) { fprintf(stderr, "--FunctionCall("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 106: { /* from SPARQL.bgen, line 1204 * ArgumentList: ConditionalOrExpression */ yyval = PyList_New(1); /* Steals a reference */ PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--ArgumentList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 107: { /* from SPARQL.bgen, line 1216 * ArgumentList: ArgumentList COMMA ConditionalOrExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--ArgumentList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 125: { /* from SPARQLTurtleSuperSet.bgen.frag, line 56 * Triples: TriplesSameSubject TriplesSameSubjectList */ PyList_Append(value_ptr[2], value_ptr[1]); Py_INCREF(value_ptr[2]); yyval = value_ptr[2]; if (self->verbose) { fprintf(stderr, "--Triples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 126: { /* from SPARQLTurtleSuperSet.bgen.frag, line 69 * Triples: TriplesSameSubject */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--Triples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 128: { /* from SPARQLTurtleSuperSet.bgen.frag, line 87 * TriplesSameSubjectList: DOT TriplesSameSubject */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--TriplesSameSubjectList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 129: { /* from SPARQLTurtleSuperSet.bgen.frag, line 99 * TriplesSameSubjectList: TriplesSameSubjectList DOT */ yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--TriplesSameSubjectList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 130: { /* from SPARQLTurtleSuperSet.bgen.frag, line 109 * TriplesSameSubjectList: TriplesSameSubjectList DOT TriplesSameSubject */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--TriplesSameSubjectList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 131: { /* from SPARQLTurtleSuperSet.bgen.frag, line 140 * TriplesSameSubject: Var PropertyList */ yyval = PyObject_CallMethod(Resource, "Resource", "OO", value_ptr[1],value_ptr[2]); if (self->verbose) { fprintf(stderr, "--TriplesSameSubject("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 132: { /* from SPARQLTurtleSuperSet.bgen.frag, line 150 * TriplesSameSubject: GraphTerm PropertyList */ yyval = PyObject_CallMethod(Resource, "Resource", "OO", value_ptr[1],value_ptr[2]); if (self->verbose) { fprintf(stderr, "--TriplesSameSubject("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 134: { /* from SPARQLTurtleSuperSet.bgen.frag, line 163 * TriplesSameSubject: LEFT_SQUARE PropertyList RIGHT_SQUARE */ yyval = PyObject_CallMethod(Resource, "Resource", "OO", NULL,value_ptr[2]); if (self->verbose) { fprintf(stderr, "--TriplesSameSubject("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 135: { /* from SPARQLTurtleSuperSet.bgen.frag, line 174 * TriplesSameSubject: Collection PropertyList */ yyval = PyObject_CallMethod(Resource, "Resource", "OO", value_ptr[1],value_ptr[2]); if (self->verbose) { fprintf(stderr, "--TriplesSameSubject("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 136: { /* from SPARQLTurtleSuperSet.bgen.frag, line 184 * TriplesSameSubject: LEFT_SQUARE PropertyList RIGHT_SQUARE PropertyList */ yyval = PyObject_CallMethod(Resource, "Resource", "OO",PyObject_CallMethod(Resource, "Resource", "OO", NULL,value_ptr[2]),value_ptr[4]); if (self->verbose) { fprintf(stderr, "--TriplesSameSubject("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 137: { /* from SPARQLTurtleSuperSet.bgen.frag, line 204 * PropertyList: Verb ObjectList */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, PyObject_CallFunction(Triples, "PropertyValue", "OO", value_ptr[1],value_ptr[2])); if (self->verbose) { fprintf(stderr, "--PropertyList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 138: { /* from SPARQLTurtleSuperSet.bgen.frag, line 215 * PropertyList: Verb ObjectList SEMICOLON PropertyList */ PyList_Append(value_ptr[4], PyObject_CallFunction(Triples, "PropertyValue", "OO", value_ptr[1],value_ptr[2])); yyval = value_ptr[4]; if (self->verbose) { fprintf(stderr, "--PropertyList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 139: { /* from SPARQLTurtleSuperSet.bgen.frag, line 229 * PropertyList: Verb ObjectList SEMICOLON */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, PyObject_CallFunction(Triples, "PropertyValue", "OO", value_ptr[1],value_ptr[2])); if (self->verbose) { fprintf(stderr, "--PropertyList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 140: { /* from SPARQLTurtleSuperSet.bgen.frag, line 248 * ObjectList: GraphNode */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--ObjectList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 141: { /* from SPARQLTurtleSuperSet.bgen.frag, line 259 * ObjectList: GraphNode COMMA ObjectList */ PyList_Append(value_ptr[3], value_ptr[1]); Py_INCREF(value_ptr[3]); yyval = value_ptr[3]; if (self->verbose) { fprintf(stderr, "--ObjectList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 147: { /* from SPARQLTurtleSuperSet.bgen.frag, line 306 * Verb: A */ yyval = PyObject_GetAttrString(RDF, "type"); if (self->verbose) { fprintf(stderr, "--Verb("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 149: { /* from SPARQLTurtleSuperSet.bgen.frag, line 327 * TriplesNode: LEFT_SQUARE PropertyList RIGHT_SQUARE */ yyval = PyObject_CallMethod(Resource, "Resource", "OO", NULL,value_ptr[2]); if (self->verbose) { fprintf(stderr, "--TriplesNode("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 151: { /* from SPARQLTurtleSuperSet.bgen.frag, line 354 * GraphNodeList: GraphNode */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--GraphNodeList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 152: { /* from SPARQLTurtleSuperSet.bgen.frag, line 365 * GraphNodeList: GraphNodeList GraphNode */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--GraphNodeList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 153: { /* from SPARQLTurtleSuperSet.bgen.frag, line 383 * Var: VARNAME */ yyval = value_ptr[1]; Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--Var("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 158: { /* from SPARQLTurtleSuperSet.bgen.frag, line 419 * GraphTerm: MINUS NumericLiteral */ PyObject *negNum = PyNumber_Negative(value_ptr[2]); yyval = PyObject_CallMethod(rdflib, "Literal", "O", negNum); Py_XDECREF(negNum); if (self->verbose) { fprintf(stderr, "--GraphTerm("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 162: { /* from SPARQLTurtleSuperSet.bgen.frag, line 450 * NumericLiteral: INTEGER */ PyObject *num = PyNumber_Int(value_ptr[1]); yyval = PyObject_CallMethod(rdflib, "Literal", "O", num); Py_XDECREF(num); if (self->verbose) { fprintf(stderr, "--NumericLiteral("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 163: { /* from SPARQLTurtleSuperSet.bgen.frag, line 462 * NumericLiteral: DECIMAL */ PyObject *num = PyNumber_Float(value_ptr[1]); yyval = PyObject_CallMethod(rdflib, "Literal", "O", num); Py_XDECREF(num); if (self->verbose) { fprintf(stderr, "--NumericLiteral("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 164: { /* from SPARQLTurtleSuperSet.bgen.frag, line 474 * NumericLiteral: DOUBLE */ PyObject *num = PyNumber_Float(value_ptr[1]); yyval = PyObject_CallMethod(rdflib, "Literal", "O", num); Py_XDECREF(num); if (self->verbose) { fprintf(stderr, "--NumericLiteral("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 166: { /* from SPARQLTurtleSuperSet.bgen.frag, line 493 * RDFLiteral: String LANGTAG */ PyObject *lang = PySequence_GetSlice(value_ptr[2], 1, PyString_GET_SIZE(value_ptr[2])); yyval = PyObject_CallMethod(rdflib, "Literal", "O", value_ptr[1],lang); Py_XDECREF(lang); if (self->verbose) { fprintf(stderr, "--RDFLiteral("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 167: { /* from SPARQLTurtleSuperSet.bgen.frag, line 505 * RDFLiteral: String DOUBLE_HAT IRIref */ yyval = PyObject_CallMethod(rdflib, "Literal", "O", value_ptr[1],NULL,value_ptr[3]); if (self->verbose) { fprintf(stderr, "--RDFLiteral("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 172: { /* from SPARQLTurtleSuperSet.bgen.frag, line 546 * BlankNode: ANON */ yyval = PyObject_CallMethod(rdflib, "BNode",""); if (self->verbose) { fprintf(stderr, "--BlankNode("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 173: { /* from SPARQLTurtleSuperSet.bgen.frag, line 555 * BlankNode: BLANK_NODE_LABEL */ yyval = PyObject_CallMethod(rdflib, "BNode", "O",value_ptr[1]); if (self->verbose) { fprintf(stderr, "--BlankNode("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } } if (!yyval) { lexer_free(lexer); return NULL; } *++value_ptr = yyval; if (self->verbose) print_state_stack(state_stack, state_ptr); /* Now "shift" the result of the reduction. */ /* Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = derives[yyn] - YYNTBASE; yystate = goto_idx[yyn] + *state_ptr; if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *state_ptr) { yystate = yytable[yystate]; } else { yystate = default_goto[yyn]; } continue; } /* if (yyn == YYFLAG) */ /* Not known => get a lookahead token if don't already have one. */ /* yychar is either YYEMPTY, YYEOF or a valid token in external form */ if (yychar == YYEMPTY) { TRACE("Reading a token: "); yychar = parser_yylex(self, lexer, &yylval); } /* Convert token to internal form (in yychar1) for indexing tables with */ if (yychar <= 0) { if (yychar == YYERROR) { lexer_free(lexer); return NULL; } /* This means end-of-input. */ yychar1 = 0; TRACE("Now at end of input.\n"); } else { yychar1 = YYTRANSLATE(yychar); TRACE("Next token is %d (%s)\n", yychar, token_names[yychar1]); yyn += yychar1; } if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) { /* comes here after end of input */ yyn = default_action[yystate]; if (yyn == 0) { return report_error(yystate, NULL, lexer); } /* Do a reduction. yyn is the number of a rule to reduce with. */ if (self->verbose) print_reduce(yyn); yylen = rhs_size[yyn]; state_ptr -= yylen; value_ptr -= yylen; if (yylen > 0) yyval = value_ptr[1]; /* Action routines */ switch (yyn) { case 1: { /* from SPARQL.bgen, line 39 * Query: Prolog QueryTypes */ yyval = PyObject_CallMethod(Query, "Query", "OO", value_ptr[1], value_ptr[2]); if (self->verbose) { fprintf(stderr, "--Query("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 2: { /* from SPARQL.bgen, line 49 * Query: QueryTypes */ yyval = PyObject_CallMethod(Query, "Query", "OO", NULL, value_ptr[1]); if (self->verbose) { fprintf(stderr, "--Query("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 4: { /* from SPARQL.bgen, line 79 * Prolog: BaseDecl PrefixDeclList */ yyval = PyObject_CallMethod(Query, "Prolog", "OO", value_ptr[1], value_ptr[2]); if (self->verbose) { fprintf(stderr, "--Prolog("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 5: { /* from SPARQL.bgen, line 89 * Prolog: BaseDecl */ yyval = PyObject_CallMethod(Query, "Prolog", "OO", value_ptr[1], NULL); if (self->verbose) { fprintf(stderr, "--Prolog("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 6: { /* from SPARQL.bgen, line 98 * Prolog: PrefixDeclList */ yyval = PyObject_CallMethod(Query, "Prolog", "OO", NULL, value_ptr[2]); if (self->verbose) { fprintf(stderr, "--Prolog("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 7: { /* from SPARQL.bgen, line 111 * PrefixDeclList: PrefixDecl */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--PrefixDeclList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 8: { /* from SPARQL.bgen, line 122 * PrefixDeclList: PrefixDeclList PrefixDecl */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--PrefixDeclList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 9: { /* from SPARQL.bgen, line 140 * PrefixDecl: PREFIX QNAME_NS Q_IRI_REF */ yyval = PyObject_CallMethod(Bindings, "PrefixDeclaration", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--PrefixDecl("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 10: { /* from SPARQL.bgen, line 156 * BaseDecl: BASE Q_IRI_REF */ yyval = PyObject_CallMethod(Bindings, "BaseDeclaration", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--BaseDecl("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 11: { /* from SPARQL.bgen, line 171 * SelectQuery: SELECT VAR_REFERENCES WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOO", value_ptr[2],NULL,value_ptr[3],value_ptr[4]); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 12: { /* from SPARQL.bgen, line 183 * SelectQuery: SELECT VAR_REFERENCES DataSetClauseList WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOO", value_ptr[2],value_ptr[3],value_ptr[4],value_ptr[5]); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[5], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); Py_DECREF(value_ptr[5]); break; } case 13: { /* from SPARQL.bgen, line 196 * SelectQuery: SELECT DISTINCT VAR_REFERENCES WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOOi", value_ptr[3],NULL,value_ptr[4],value_ptr[5],1); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[5], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); Py_DECREF(value_ptr[5]); break; } case 14: { /* from SPARQL.bgen, line 209 * SelectQuery: SELECT DISTINCT VAR_REFERENCES DataSetClauseList WhereClause SolutionModifier */ yyval = PyObject_CallMethod(Query, "SelectQuery", "OOOOi", value_ptr[3],value_ptr[4],value_ptr[5],value_ptr[6],1); if (self->verbose) { fprintf(stderr, "--SelectQuery("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[5], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[6], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); Py_DECREF(value_ptr[5]); Py_DECREF(value_ptr[6]); break; } case 17: { /* from SPARQL.bgen, line 238 * VariableReferenceList: Var */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--VariableReferenceList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 18: { /* from SPARQL.bgen, line 249 * VariableReferenceList: VariableReferenceList Var */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--VariableReferenceList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 19: { /* from SPARQL.bgen, line 267 * IRIref: Q_IRI_REF */ yyval = PyObject_CallMethod(IRIRef, "IRIRef", "O",value_ptr[1]); if (self->verbose) { fprintf(stderr, "--IRIref("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 21: { /* from SPARQL.bgen, line 284 * QName: QNAME QNAME_NS */ yyval = PyObject_CallMethod(QName, "QNamePrefix", "O",value_ptr[1]); if (self->verbose) { fprintf(stderr, "--QName("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 22: { /* from SPARQL.bgen, line 305 * DataSetClauseList: DataSetClause */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--DataSetClauseList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 23: { /* from SPARQL.bgen, line 316 * DataSetClauseList: DataSetClauseList DataSetClause */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--DataSetClauseList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 24: { /* from SPARQL.bgen, line 334 * DataSetClause: FROM IRIref */ yyval = PyObject_CallMethod(IRIRef, "RemoteGraph", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--DataSetClause("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 25: { /* from SPARQL.bgen, line 344 * DataSetClause: FROM NAMED IRIref */ yyval = PyObject_CallMethod(IRIRef, "NamedGraph", "O", value_ptr[3]); if (self->verbose) { fprintf(stderr, "--DataSetClause("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 26: { /* from SPARQL.bgen, line 360 * WhereClause: WHERE GroupGraphPattern */ yyval = value_ptr[2]; if (self->verbose) { fprintf(stderr, "--WhereClause("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 28: { /* from SPARQL.bgen, line 379 * SolutionModifier: */ yyval = PyObject_CallMethod(SolutionModifier, "SolutionModifier", ""); if (self->verbose) { fprintf(stderr, "--SolutionModifier("); fprintf(stderr, ")\n"); } break; } case 37: { /* from SPARQL.bgen, line 427 * OrderConditionList: OrderCondition */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--OrderConditionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 38: { /* from SPARQL.bgen, line 438 * OrderConditionList: OrderConditionList OrderCondition */ PyList_Append(value_ptr[1], value_ptr[2]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--OrderConditionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 46: { /* from SPARQL.bgen, line 503 * GroupGraphPattern: LEFT_CURLY GraphPattern RIGHT_CURLY */ yyval = PyObject_CallMethod(GraphPattern, "GroupGraphPattern", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GroupGraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 47: { /* from SPARQL.bgen, line 534 * GraphPattern: FilteredBasicGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "O", value_ptr[1]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 48: { /* from SPARQL.bgen, line 543 * GraphPattern: FilteredBasicGraphPattern GraphPatternNotTriples */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OO", value_ptr[1],value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 49: { /* from SPARQL.bgen, line 553 * GraphPattern: FilteredBasicGraphPattern GraphPatternNotTriples GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", value_ptr[1],value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 50: { /* from SPARQL.bgen, line 564 * GraphPattern: FilteredBasicGraphPattern GraphPatternNotTriples DOT GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", value_ptr[1],value_ptr[2],value_ptr[4]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[4], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); Py_DECREF(value_ptr[4]); break; } case 51: { /* from SPARQL.bgen, line 576 * GraphPattern: GraphPatternNotTriples */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO",NULL,value_ptr[1],NULL); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 52: { /* from SPARQL.bgen, line 585 * GraphPattern: GraphPatternNotTriples GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", NULL,value_ptr[1],value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 53: { /* from SPARQL.bgen, line 595 * GraphPattern: GraphPatternNotTriples DOT GraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "GraphPattern", "OOO", NULL,value_ptr[1],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPattern("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 54: { /* from SPARQL.bgen, line 650 * GraphPatternNotTriples: OPTIONAL GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "OptionalGraphPattern", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 55: { /* from SPARQL.bgen, line 660 * GraphPatternNotTriples: GroupGraphPattern AlternativeGroupGraphPatterns */ PyList_Append(value_ptr[2], value_ptr[1]); Py_INCREF(value_ptr[2]); yyval = PyObject_CallMethod(GraphPattern, "AlternativeGraphPattern", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 56: { /* from SPARQL.bgen, line 673 * GraphPatternNotTriples: GRAPH Var GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "NamedGraph", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 57: { /* from SPARQL.bgen, line 684 * GraphPatternNotTriples: GRAPH BlankNode GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "NamedGraph", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 58: { /* from SPARQL.bgen, line 695 * GraphPatternNotTriples: GRAPH IRIref GroupGraphPattern */ yyval = PyObject_CallMethod(GraphPattern, "NamedGraph", "OO", value_ptr[2],value_ptr[3]); if (self->verbose) { fprintf(stderr, "--GraphPatternNotTriples("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 59: { /* from SPARQL.bgen, line 713 * AlternativeGroupGraphPatterns: UNION GroupGraphPattern */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--AlternativeGroupGraphPatterns("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 60: { /* from SPARQL.bgen, line 725 * AlternativeGroupGraphPatterns: AlternativeGroupGraphPatterns UNION GroupGraphPattern */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--AlternativeGroupGraphPatterns("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 61: { /* from SPARQL.bgen, line 747 * ConditionalOrExpression: ConditionalAndExpression */ yyval = PyList_New(1); /* Steals a reference */ PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--ConditionalOrExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 62: { /* from SPARQL.bgen, line 759 * ConditionalOrExpression: ConditionalAndExpression ConditionalAndExpressionList */ PyList_Append(value_ptr[2], value_ptr[1]); Py_INCREF(value_ptr[2]); yyval = PyObject_CallMethod(Expression, "ConditionalAndExpressionList", "O", value_ptr[2]); if (self->verbose) { fprintf(stderr, "--ConditionalOrExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 63: { /* from SPARQL.bgen, line 776 * ConditionalAndExpressionList: DOUBLE_PIPE ConditionalAndExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--ConditionalAndExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 64: { /* from SPARQL.bgen, line 788 * ConditionalAndExpressionList: ConditionalAndExpressionList DOUBLE_PIPE ConditionalAndExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--ConditionalAndExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 65: { /* from SPARQL.bgen, line 807 * ConditionalAndExpression: RelationalExpression ValueLogicalList */ PyList_Append(value_ptr[2], value_ptr[1]); Py_INCREF(value_ptr[2]); yyval = value_ptr[2]; if (self->verbose) { fprintf(stderr, "--ConditionalAndExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 66: { /* from SPARQL.bgen, line 820 * ConditionalAndExpression: RelationalExpression */ yyval = PyList_New(1); /* Steals a reference */ PyList_SET_ITEM(yyval, 0, value_ptr[1]); Py_INCREF(value_ptr[1]); if (self->verbose) { fprintf(stderr, "--ConditionalAndExpression("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); break; } case 67: { /* from SPARQL.bgen, line 836 * ValueLogicalList: DOUBLE_AMPERSAND RelationalExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--ValueLogicalList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); break; } case 68: { /* from SPARQL.bgen, line 848 * ValueLogicalList: ValueLogicalList DOUBLE_AMPERSAND RelationalExpression */ PyList_Append(value_ptr[1], value_ptr[3]); Py_INCREF(value_ptr[1]); yyval = value_ptr[1]; if (self->verbose) { fprintf(stderr, "--ValueLogicalList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[3], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(value_ptr[1]); Py_DECREF(value_ptr[2]); Py_DECREF(value_ptr[3]); break; } case 78: { /* from SPARQL.bgen, line 926 * MultiplicativeExpressionList: PLUS MultiplicativeExpression */ yyval = PyList_New(1); PyList_SET_ITEM(yyval, 0, value_ptr[2]); Py_INCREF(value_ptr[2]); if (self->verbose) { fprintf(stderr, "--MultiplicativeExpressionList("); PyObject_Print(value_ptr[1], stderr, Py_PRINT_RAW); fprintf(stderr, ", "); PyObject_Print(value_ptr[2], stderr, Py_PRINT_RAW); fprintf(stderr, ")\n"); } Py_DECREF(val