ebnf 1.1.2 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +218 -196
  3. data/UNLICENSE +1 -1
  4. data/VERSION +1 -1
  5. data/bin/ebnf +40 -21
  6. data/etc/abnf-core.ebnf +52 -0
  7. data/etc/abnf.abnf +121 -0
  8. data/etc/abnf.ebnf +124 -0
  9. data/etc/abnf.sxp +45 -0
  10. data/etc/doap.ttl +23 -15
  11. data/etc/ebnf.ebnf +21 -33
  12. data/etc/ebnf.html +171 -160
  13. data/etc/{ebnf.rb → ebnf.ll1.rb} +30 -107
  14. data/etc/ebnf.ll1.sxp +182 -183
  15. data/etc/ebnf.peg.rb +90 -0
  16. data/etc/ebnf.peg.sxp +84 -0
  17. data/etc/ebnf.sxp +40 -41
  18. data/etc/iso-ebnf.ebnf +140 -0
  19. data/etc/iso-ebnf.isoebnf +138 -0
  20. data/etc/iso-ebnf.sxp +65 -0
  21. data/etc/sparql.ebnf +4 -4
  22. data/etc/sparql.html +1603 -1751
  23. data/etc/sparql.ll1.sxp +7372 -7372
  24. data/etc/sparql.peg.rb +532 -0
  25. data/etc/sparql.peg.sxp +597 -0
  26. data/etc/sparql.sxp +363 -362
  27. data/etc/turtle.ebnf +3 -3
  28. data/etc/turtle.html +465 -517
  29. data/etc/{turtle.rb → turtle.ll1.rb} +3 -4
  30. data/etc/turtle.ll1.sxp +425 -425
  31. data/etc/turtle.peg.rb +182 -0
  32. data/etc/turtle.peg.sxp +199 -0
  33. data/etc/turtle.sxp +103 -101
  34. data/lib/ebnf.rb +7 -2
  35. data/lib/ebnf/abnf.rb +301 -0
  36. data/lib/ebnf/abnf/core.rb +23 -0
  37. data/lib/ebnf/abnf/meta.rb +111 -0
  38. data/lib/ebnf/base.rb +128 -87
  39. data/lib/ebnf/bnf.rb +1 -26
  40. data/lib/ebnf/ebnf/meta.rb +90 -0
  41. data/lib/ebnf/isoebnf.rb +229 -0
  42. data/lib/ebnf/isoebnf/meta.rb +75 -0
  43. data/lib/ebnf/ll1.rb +140 -8
  44. data/lib/ebnf/ll1/lexer.rb +37 -32
  45. data/lib/ebnf/ll1/parser.rb +113 -73
  46. data/lib/ebnf/ll1/scanner.rb +83 -51
  47. data/lib/ebnf/native.rb +320 -0
  48. data/lib/ebnf/parser.rb +285 -302
  49. data/lib/ebnf/peg.rb +39 -0
  50. data/lib/ebnf/peg/parser.rb +561 -0
  51. data/lib/ebnf/peg/rule.rb +241 -0
  52. data/lib/ebnf/rule.rb +453 -163
  53. data/lib/ebnf/terminals.rb +21 -0
  54. data/lib/ebnf/writer.rb +561 -88
  55. metadata +114 -28
  56. data/etc/sparql.rb +0 -45773
@@ -0,0 +1,597 @@
1
+ (
2
+ (rule QueryUnit "1" (opt Query))
3
+ (rule Query "2" (seq Prologue _Query_1))
4
+ (rule _Query_1 "2.1" (alt SelectQuery ConstructQuery DescribeQuery AskQuery))
5
+ (rule UpdateUnit "3" (seq Update))
6
+ (rule Prologue "4" (star _Prologue_1))
7
+ (rule _Prologue_1 "4.1" (alt BaseDecl PrefixDecl))
8
+ (rule BaseDecl "5" (seq "BASE" IRIREF))
9
+ (rule PrefixDecl "6" (seq "PREFIX" PNAME_NS IRIREF))
10
+ (rule SelectQuery "7"
11
+ (seq SelectClause _SelectQuery_1 WhereClause SolutionModifier ValuesClause))
12
+ (rule _SelectQuery_1 "7.1" (star DatasetClause))
13
+ (rule SubSelect "8" (seq SelectClause WhereClause SolutionModifier ValuesClause))
14
+ (rule SelectClause "9" (seq "SELECT" _SelectClause_1 _SelectClause_2))
15
+ (rule _SelectClause_1 "9.1" (opt _SelectClause_3))
16
+ (rule _SelectClause_2 "9.2" (alt _SelectClause_4 "*"))
17
+ (rule _SelectClause_3 "9.3" (alt "DISTINCT" "REDUCED"))
18
+ (rule _SelectClause_4 "9.4" (plus _SelectClause_5))
19
+ (rule _SelectClause_5 "9.5" (alt Var _SelectClause_6))
20
+ (rule _SelectClause_6 "9.6" (seq "(" Expression "AS" Var ")"))
21
+ (rule ConstructQuery "10" (seq "CONSTRUCT" _ConstructQuery_1 ValuesClause))
22
+ (rule _ConstructQuery_1 "10.1" (alt _ConstructQuery_2 _ConstructQuery_3))
23
+ (rule _ConstructQuery_2 "10.2"
24
+ (seq ConstructTemplate _ConstructQuery_4 WhereClause SolutionModifier))
25
+ (rule _ConstructQuery_3 "10.3"
26
+ (seq _ConstructQuery_5 "WHERE" "{" _ConstructQuery_6 "}" SolutionModifier))
27
+ (rule _ConstructQuery_4 "10.4" (star DatasetClause))
28
+ (rule _ConstructQuery_5 "10.5" (star DatasetClause))
29
+ (rule _ConstructQuery_6 "10.6" (opt TriplesTemplate))
30
+ (rule DescribeQuery "11"
31
+ (seq "DESCRIBE" _DescribeQuery_1 _DescribeQuery_2 _DescribeQuery_3
32
+ SolutionModifier ValuesClause ))
33
+ (rule _DescribeQuery_1 "11.1" (alt _DescribeQuery_4 "*"))
34
+ (rule _DescribeQuery_2 "11.2" (star DatasetClause))
35
+ (rule _DescribeQuery_3 "11.3" (opt WhereClause))
36
+ (rule _DescribeQuery_4 "11.4" (plus VarOrIri))
37
+ (rule AskQuery "12" (seq "ASK" _AskQuery_1 WhereClause ValuesClause))
38
+ (rule _AskQuery_1 "12.1" (star DatasetClause))
39
+ (rule DatasetClause "13" (seq "FROM" _DatasetClause_1))
40
+ (rule _DatasetClause_1 "13.1" (alt DefaultGraphClause NamedGraphClause))
41
+ (rule DefaultGraphClause "14" (seq SourceSelector))
42
+ (rule NamedGraphClause "15" (seq "NAMED" SourceSelector))
43
+ (rule SourceSelector "16" (seq iri))
44
+ (rule WhereClause "17" (seq _WhereClause_1 GroupGraphPattern))
45
+ (rule _WhereClause_1 "17.1" (opt "WHERE"))
46
+ (rule SolutionModifier "18"
47
+ (seq _SolutionModifier_1 _SolutionModifier_2 _SolutionModifier_3
48
+ _SolutionModifier_4 ))
49
+ (rule _SolutionModifier_1 "18.1" (opt GroupClause))
50
+ (rule _SolutionModifier_2 "18.2" (opt HavingClause))
51
+ (rule _SolutionModifier_3 "18.3" (opt OrderClause))
52
+ (rule _SolutionModifier_4 "18.4" (opt LimitOffsetClauses))
53
+ (rule GroupClause "19" (seq "GROUP" "BY" _GroupClause_1))
54
+ (rule _GroupClause_1 "19.1" (plus GroupCondition))
55
+ (rule GroupCondition "20" (alt BuiltInCall FunctionCall _GroupCondition_1 Var))
56
+ (rule _GroupCondition_1 "20.1" (seq "(" Expression _GroupCondition_2 ")"))
57
+ (rule _GroupCondition_2 "20.2" (opt _GroupCondition_3))
58
+ (rule _GroupCondition_3 "20.3" (seq "AS" Var))
59
+ (rule HavingClause "21" (seq "HAVING" _HavingClause_1))
60
+ (rule _HavingClause_1 "21.1" (plus HavingCondition))
61
+ (rule HavingCondition "22" (seq Constraint))
62
+ (rule OrderClause "23" (seq "ORDER" "BY" _OrderClause_1))
63
+ (rule _OrderClause_1 "23.1" (plus OrderCondition))
64
+ (rule OrderCondition "24" (alt _OrderCondition_1 _OrderCondition_2))
65
+ (rule _OrderCondition_1 "24.1" (seq _OrderCondition_3 BrackettedExpression))
66
+ (rule _OrderCondition_2 "24.2" (alt Constraint Var))
67
+ (rule _OrderCondition_3 "24.3" (alt "ASC" "DESC"))
68
+ (rule LimitOffsetClauses "25" (alt _LimitOffsetClauses_1 _LimitOffsetClauses_2))
69
+ (rule _LimitOffsetClauses_1 "25.1" (seq LimitClause _LimitOffsetClauses_3))
70
+ (rule _LimitOffsetClauses_2 "25.2" (seq OffsetClause _LimitOffsetClauses_4))
71
+ (rule _LimitOffsetClauses_3 "25.3" (opt OffsetClause))
72
+ (rule _LimitOffsetClauses_4 "25.4" (opt LimitClause))
73
+ (rule LimitClause "26" (seq "LIMIT" INTEGER))
74
+ (rule OffsetClause "27" (seq "OFFSET" INTEGER))
75
+ (rule ValuesClause "28" (opt _ValuesClause_1))
76
+ (rule _ValuesClause_1 "28.1" (seq "VALUES" DataBlock))
77
+ (rule Update "29" (seq Prologue _Update_1))
78
+ (rule _Update_1 "29.1" (opt _Update_2))
79
+ (rule _Update_2 "29.2" (seq Update1 _Update_3))
80
+ (rule _Update_3 "29.3" (opt _Update_4))
81
+ (rule _Update_4 "29.4" (seq ";" Update))
82
+ (rule Update1 "30"
83
+ (alt Load Clear Drop Add Move Copy Create InsertData DeleteData DeleteWhere
84
+ Modify ))
85
+ (rule Load "31" (seq "LOAD" _Load_1 iri _Load_2))
86
+ (rule _Load_1 "31.1" (opt "SILENT"))
87
+ (rule _Load_2 "31.2" (opt _Load_3))
88
+ (rule _Load_3 "31.3" (seq "INTO" GraphRef))
89
+ (rule Clear "32" (seq "CLEAR" _Clear_1 GraphRefAll))
90
+ (rule _Clear_1 "32.1" (opt "SILENT"))
91
+ (rule Drop "33" (seq "DROP" _Drop_1 GraphRefAll))
92
+ (rule _Drop_1 "33.1" (opt "SILENT"))
93
+ (rule Create "34" (seq "CREATE" _Create_1 GraphRef))
94
+ (rule _Create_1 "34.1" (opt "SILENT"))
95
+ (rule Add "35" (seq "ADD" _Add_1 GraphOrDefault "TO" GraphOrDefault))
96
+ (rule _Add_1 "35.1" (opt "SILENT"))
97
+ (rule Move "36" (seq "MOVE" _Move_1 GraphOrDefault "TO" GraphOrDefault))
98
+ (rule _Move_1 "36.1" (opt "SILENT"))
99
+ (rule Copy "37" (seq "COPY" _Copy_1 GraphOrDefault "TO" GraphOrDefault))
100
+ (rule _Copy_1 "37.1" (opt "SILENT"))
101
+ (rule InsertData "38" (seq "INSERT DATA" QuadData))
102
+ (rule DeleteData "39" (seq "DELETE DATA" QuadData))
103
+ (rule DeleteWhere "40" (seq "DELETE WHERE" QuadPattern))
104
+ (rule Modify "41" (seq _Modify_1 _Modify_2 _Modify_3 "WHERE" GroupGraphPattern))
105
+ (rule _Modify_1 "41.1" (opt _Modify_4))
106
+ (rule _Modify_2 "41.2" (alt _Modify_5 InsertClause))
107
+ (rule _Modify_3 "41.3" (star UsingClause))
108
+ (rule _Modify_4 "41.4" (seq "WITH" iri))
109
+ (rule _Modify_5 "41.5" (seq DeleteClause _Modify_6))
110
+ (rule _Modify_6 "41.6" (opt InsertClause))
111
+ (rule DeleteClause "42" (seq "DELETE" QuadPattern))
112
+ (rule InsertClause "43" (seq "INSERT" QuadPattern))
113
+ (rule UsingClause "44" (seq "USING" _UsingClause_1))
114
+ (rule _UsingClause_1 "44.1" (alt iri _UsingClause_2))
115
+ (rule _UsingClause_2 "44.2" (seq "NAMED" iri))
116
+ (rule GraphOrDefault "45" (alt "DEFAULT" _GraphOrDefault_1))
117
+ (rule _GraphOrDefault_1 "45.1" (seq _GraphOrDefault_2 iri))
118
+ (rule _GraphOrDefault_2 "45.2" (opt "GRAPH"))
119
+ (rule GraphRef "46" (seq "GRAPH" iri))
120
+ (rule GraphRefAll "47" (alt GraphRef "DEFAULT" "NAMED" "ALL"))
121
+ (rule QuadPattern "48" (seq "{" Quads "}"))
122
+ (rule QuadData "49" (seq "{" Quads "}"))
123
+ (rule Quads "50" (seq _Quads_1 _Quads_2))
124
+ (rule _Quads_1 "50.1" (opt TriplesTemplate))
125
+ (rule _Quads_2 "50.2" (star _Quads_3))
126
+ (rule _Quads_3 "50.3" (seq QuadsNotTriples _Quads_4 _Quads_5))
127
+ (rule _Quads_4 "50.4" (opt "."))
128
+ (rule _Quads_5 "50.5" (opt TriplesTemplate))
129
+ (rule QuadsNotTriples "51" (seq "GRAPH" VarOrIri "{" _QuadsNotTriples_1 "}"))
130
+ (rule _QuadsNotTriples_1 "51.1" (opt TriplesTemplate))
131
+ (rule TriplesTemplate "52" (seq TriplesSameSubject _TriplesTemplate_1))
132
+ (rule _TriplesTemplate_1 "52.1" (opt _TriplesTemplate_2))
133
+ (rule _TriplesTemplate_2 "52.2" (seq "." _TriplesTemplate_3))
134
+ (rule _TriplesTemplate_3 "52.3" (opt TriplesTemplate))
135
+ (rule GroupGraphPattern "53" (seq "{" _GroupGraphPattern_1 "}"))
136
+ (rule _GroupGraphPattern_1 "53.1" (alt SubSelect GroupGraphPatternSub))
137
+ (rule GroupGraphPatternSub "54"
138
+ (seq _GroupGraphPatternSub_1 _GroupGraphPatternSub_2))
139
+ (rule _GroupGraphPatternSub_1 "54.1" (opt TriplesBlock))
140
+ (rule _GroupGraphPatternSub_2 "54.2" (star _GroupGraphPatternSub_3))
141
+ (rule _GroupGraphPatternSub_3 "54.3"
142
+ (seq GraphPatternNotTriples _GroupGraphPatternSub_4 _GroupGraphPatternSub_5))
143
+ (rule _GroupGraphPatternSub_4 "54.4" (opt "."))
144
+ (rule _GroupGraphPatternSub_5 "54.5" (opt TriplesBlock))
145
+ (rule TriplesBlock "55" (seq TriplesSameSubjectPath _TriplesBlock_1))
146
+ (rule _TriplesBlock_1 "55.1" (opt _TriplesBlock_2))
147
+ (rule _TriplesBlock_2 "55.2" (seq "." _TriplesBlock_3))
148
+ (rule _TriplesBlock_3 "55.3" (opt TriplesBlock))
149
+ (rule GraphPatternNotTriples "56"
150
+ (alt GroupOrUnionGraphPattern OptionalGraphPattern MinusGraphPattern
151
+ GraphGraphPattern ServiceGraphPattern Filter Bind InlineData ))
152
+ (rule OptionalGraphPattern "57" (seq "OPTIONAL" GroupGraphPattern))
153
+ (rule GraphGraphPattern "58" (seq "GRAPH" VarOrIri GroupGraphPattern))
154
+ (rule ServiceGraphPattern "59"
155
+ (seq "SERVICE" _ServiceGraphPattern_1 VarOrIri GroupGraphPattern))
156
+ (rule _ServiceGraphPattern_1 "59.1" (opt "SILENT"))
157
+ (rule Bind "60" (seq "BIND" "(" Expression "AS" Var ")"))
158
+ (rule InlineData "61" (seq "VALUES" DataBlock))
159
+ (rule DataBlock "62" (alt InlineDataOneVar InlineDataFull))
160
+ (rule InlineDataOneVar "63" (seq Var "{" _InlineDataOneVar_1 "}"))
161
+ (rule _InlineDataOneVar_1 "63.1" (star DataBlockValue))
162
+ (rule InlineDataFull "64" (seq _InlineDataFull_1 "{" _InlineDataFull_2 "}"))
163
+ (rule _InlineDataFull_1 "64.1" (alt NIL _InlineDataFull_3))
164
+ (rule _InlineDataFull_2 "64.2" (star _InlineDataFull_5))
165
+ (rule _InlineDataFull_3 "64.3" (seq "(" _InlineDataFull_4 ")"))
166
+ (rule _InlineDataFull_4 "64.4" (star Var))
167
+ (rule _InlineDataFull_5 "64.5" (alt _InlineDataFull_6 NIL))
168
+ (rule _InlineDataFull_6 "64.6" (seq "(" _InlineDataFull_7 ")"))
169
+ (rule _InlineDataFull_7 "64.7" (star DataBlockValue))
170
+ (rule DataBlockValue "65"
171
+ (alt iri RDFLiteral NumericLiteral BooleanLiteral "UNDEF"))
172
+ (rule MinusGraphPattern "66" (seq "MINUS" GroupGraphPattern))
173
+ (rule GroupOrUnionGraphPattern "67"
174
+ (seq GroupGraphPattern _GroupOrUnionGraphPattern_1))
175
+ (rule _GroupOrUnionGraphPattern_1 "67.1" (star _GroupOrUnionGraphPattern_2))
176
+ (rule _GroupOrUnionGraphPattern_2 "67.2" (seq "UNION" GroupGraphPattern))
177
+ (rule Filter "68" (seq "FILTER" Constraint))
178
+ (rule Constraint "69" (alt BrackettedExpression BuiltInCall FunctionCall))
179
+ (rule FunctionCall "70" (seq iri ArgList))
180
+ (rule ArgList "71" (alt NIL _ArgList_1))
181
+ (rule _ArgList_1 "71.1" (seq "(" _ArgList_2 Expression _ArgList_3 ")"))
182
+ (rule _ArgList_2 "71.2" (opt "DISTINCT"))
183
+ (rule _ArgList_3 "71.3" (star _ArgList_4))
184
+ (rule _ArgList_4 "71.4" (seq "," Expression))
185
+ (rule ExpressionList "72" (alt NIL _ExpressionList_1))
186
+ (rule _ExpressionList_1 "72.1" (seq "(" Expression _ExpressionList_2 ")"))
187
+ (rule _ExpressionList_2 "72.2" (star _ExpressionList_3))
188
+ (rule _ExpressionList_3 "72.3" (seq "," Expression))
189
+ (rule ConstructTemplate "73" (seq "{" _ConstructTemplate_1 "}"))
190
+ (rule _ConstructTemplate_1 "73.1" (opt ConstructTriples))
191
+ (rule ConstructTriples "74" (seq TriplesSameSubject _ConstructTriples_1))
192
+ (rule _ConstructTriples_1 "74.1" (opt _ConstructTriples_2))
193
+ (rule _ConstructTriples_2 "74.2" (seq "." _ConstructTriples_3))
194
+ (rule _ConstructTriples_3 "74.3" (opt ConstructTriples))
195
+ (rule TriplesSameSubject "75" (alt _TriplesSameSubject_1 _TriplesSameSubject_2))
196
+ (rule _TriplesSameSubject_1 "75.1" (seq VarOrTerm PropertyListNotEmpty))
197
+ (rule _TriplesSameSubject_2 "75.2" (seq TriplesNode PropertyList))
198
+ (rule PropertyList "76" (opt PropertyListNotEmpty))
199
+ (rule PropertyListNotEmpty "77" (seq Verb ObjectList _PropertyListNotEmpty_1))
200
+ (rule _PropertyListNotEmpty_1 "77.1" (star _PropertyListNotEmpty_2))
201
+ (rule _PropertyListNotEmpty_2 "77.2" (seq ";" _PropertyListNotEmpty_3))
202
+ (rule _PropertyListNotEmpty_3 "77.3" (opt _PropertyListNotEmpty_4))
203
+ (rule _PropertyListNotEmpty_4 "77.4" (seq Verb ObjectList))
204
+ (rule Verb "78" (alt VarOrIri "a"))
205
+ (rule ObjectList "79" (seq Object _ObjectList_1))
206
+ (rule _ObjectList_1 "79.1" (star _ObjectList_2))
207
+ (rule _ObjectList_2 "79.2" (seq "," Object))
208
+ (rule Object "80" (seq GraphNode))
209
+ (rule TriplesSameSubjectPath "81"
210
+ (alt _TriplesSameSubjectPath_1 _TriplesSameSubjectPath_2))
211
+ (rule _TriplesSameSubjectPath_1 "81.1" (seq VarOrTerm PropertyListNotEmptyPath))
212
+ (rule _TriplesSameSubjectPath_2 "81.2" (seq TriplesNode PropertyListPath))
213
+ (rule PropertyListPath "82" (opt PropertyListNotEmpty))
214
+ (rule PropertyListNotEmptyPath "83"
215
+ (seq _PropertyListNotEmptyPath_1 ObjectList _PropertyListNotEmptyPath_2))
216
+ (rule _PropertyListNotEmptyPath_1 "83.1" (alt VerbPath VerbSimple))
217
+ (rule _PropertyListNotEmptyPath_2 "83.2" (star _PropertyListNotEmptyPath_3))
218
+ (rule _PropertyListNotEmptyPath_3 "83.3" (seq ";" _PropertyListNotEmptyPath_4))
219
+ (rule _PropertyListNotEmptyPath_4 "83.4" (opt _PropertyListNotEmptyPath_5))
220
+ (rule _PropertyListNotEmptyPath_5 "83.5"
221
+ (seq _PropertyListNotEmptyPath_6 ObjectList))
222
+ (rule _PropertyListNotEmptyPath_6 "83.6" (alt VerbPath VerbSimple))
223
+ (rule VerbPath "84" (seq Path))
224
+ (rule VerbSimple "85" (seq Var))
225
+ (rule ObjectListPath "86" (seq ObjectPath _ObjectListPath_1))
226
+ (rule _ObjectListPath_1 "86.1" (star _ObjectListPath_2))
227
+ (rule _ObjectListPath_2 "86.2" (seq "," ObjectPath))
228
+ (rule ObjectPath "87" (seq GraphNodePath))
229
+ (rule Path "88" (seq PathAlternative))
230
+ (rule PathAlternative "89" (seq PathSequence _PathAlternative_1))
231
+ (rule _PathAlternative_1 "89.1" (star _PathAlternative_2))
232
+ (rule _PathAlternative_2 "89.2" (seq "|" PathSequence))
233
+ (rule PathSequence "90" (seq PathEltOrInverse _PathSequence_1))
234
+ (rule _PathSequence_1 "90.1" (star _PathSequence_2))
235
+ (rule _PathSequence_2 "90.2" (seq "/" PathEltOrInverse))
236
+ (rule PathElt "91" (seq PathPrimary _PathElt_1))
237
+ (rule _PathElt_1 "91.1" (opt PathMod))
238
+ (rule PathEltOrInverse "92" (alt PathElt _PathEltOrInverse_1))
239
+ (rule _PathEltOrInverse_1 "92.1" (seq "^" PathElt))
240
+ (rule PathMod "93" (alt "*" "?" "+" _PathMod_1))
241
+ (rule _PathMod_1 "93.1" (seq "{" _PathMod_2))
242
+ (rule _PathMod_2 "93.2" (alt _PathMod_3 _PathMod_4))
243
+ (rule _PathMod_3 "93.3" (seq Integer _PathMod_5))
244
+ (rule _PathMod_4 "93.4" (seq "," Integer "}"))
245
+ (rule _PathMod_5 "93.5" (alt _PathMod_6 "}"))
246
+ (rule _PathMod_6 "93.6" (seq "," _PathMod_7))
247
+ (rule _PathMod_7 "93.7" (alt "}" _PathMod_8))
248
+ (rule _PathMod_8 "93.8" (seq Integer "}"))
249
+ (rule PathPrimary "94" (alt iri "a" _PathPrimary_1 _PathPrimary_2))
250
+ (rule _PathPrimary_1 "94.1" (seq "!" PathNegatedPropertySet))
251
+ (rule _PathPrimary_2 "94.2" (seq "(" Path ")"))
252
+ (rule PathNegatedPropertySet "95"
253
+ (alt PathOneInPropertySet _PathNegatedPropertySet_1))
254
+ (rule _PathNegatedPropertySet_1 "95.1" (seq "(" _PathNegatedPropertySet_2 ")"))
255
+ (rule _PathNegatedPropertySet_2 "95.2" (opt _PathNegatedPropertySet_3))
256
+ (rule _PathNegatedPropertySet_3 "95.3"
257
+ (seq PathOneInPropertySet _PathNegatedPropertySet_4))
258
+ (rule _PathNegatedPropertySet_4 "95.4" (star _PathNegatedPropertySet_5))
259
+ (rule _PathNegatedPropertySet_5 "95.5" (seq "|" PathOneInPropertySet))
260
+ (rule PathOneInPropertySet "96" (alt iri "a" _PathOneInPropertySet_1))
261
+ (rule _PathOneInPropertySet_1 "96.1" (seq "^" _PathOneInPropertySet_2))
262
+ (rule _PathOneInPropertySet_2 "96.2" (alt iri "a"))
263
+ (rule Integer "97" (seq INTEGER))
264
+ (rule TriplesNode "98" (alt Collection BlankNodePropertyList))
265
+ (rule BlankNodePropertyList "99" (seq "[" PropertyListNotEmpty "]"))
266
+ (rule TriplesNodePath "100" (alt CollectionPath BlankNodePropertyListPath))
267
+ (rule BlankNodePropertyListPath "101" (seq "[" PropertyListPathNotEmpty "]"))
268
+ (rule Collection "102" (seq "(" _Collection_1 ")"))
269
+ (rule _Collection_1 "102.1" (plus GraphNode))
270
+ (rule CollectionPath "103" (seq "(" _CollectionPath_1 ")"))
271
+ (rule _CollectionPath_1 "103.1" (plus GraphNodePath))
272
+ (rule GraphNode "104" (alt VarOrTerm TriplesNode))
273
+ (rule GraphNodePath "105" (alt VarOrTerm TriplesNodePath))
274
+ (rule VarOrTerm "106" (alt Var GraphTerm))
275
+ (rule VarOrIri "107" (alt Var iri))
276
+ (rule Var "108" (alt VAR1 VAR2))
277
+ (rule GraphTerm "109"
278
+ (alt iri RDFLiteral NumericLiteral BooleanLiteral BlankNode NIL))
279
+ (rule Expression "110" (seq ConditionalOrExpression))
280
+ (rule ConditionalOrExpression "111"
281
+ (seq ConditionalAndExpression _ConditionalOrExpression_1))
282
+ (rule _ConditionalOrExpression_1 "111.1" (star _ConditionalOrExpression_2))
283
+ (rule _ConditionalOrExpression_2 "111.2" (seq "||" ConditionalAndExpression))
284
+ (rule ConditionalAndExpression "112" (seq ValueLogical _ConditionalAndExpression_1))
285
+ (rule _ConditionalAndExpression_1 "112.1" (star _ConditionalAndExpression_2))
286
+ (rule _ConditionalAndExpression_2 "112.2" (seq "&&" ValueLogical))
287
+ (rule ValueLogical "113" (seq RelationalExpression))
288
+ (rule RelationalExpression "114" (seq NumericExpression _RelationalExpression_1))
289
+ (rule _RelationalExpression_1 "114.1" (opt _RelationalExpression_2))
290
+ (rule _RelationalExpression_10 "114.10" (seq "NOT" "IN" ExpressionList))
291
+ (rule _RelationalExpression_2 "114.2"
292
+ (alt _RelationalExpression_3 _RelationalExpression_4 _RelationalExpression_5
293
+ _RelationalExpression_6 _RelationalExpression_7 _RelationalExpression_8
294
+ _RelationalExpression_9 _RelationalExpression_10 ))
295
+ (rule _RelationalExpression_3 "114.3" (seq "=" NumericExpression))
296
+ (rule _RelationalExpression_4 "114.4" (seq "!=" NumericExpression))
297
+ (rule _RelationalExpression_5 "114.5" (seq "<" NumericExpression))
298
+ (rule _RelationalExpression_6 "114.6" (seq ">" NumericExpression))
299
+ (rule _RelationalExpression_7 "114.7" (seq "<=" NumericExpression))
300
+ (rule _RelationalExpression_8 "114.8" (seq ">=" NumericExpression))
301
+ (rule _RelationalExpression_9 "114.9" (seq "IN" ExpressionList))
302
+ (rule NumericExpression "115" (seq AdditiveExpression))
303
+ (rule AdditiveExpression "116" (seq MultiplicativeExpression _AdditiveExpression_1))
304
+ (rule _AdditiveExpression_10 "116.10" (seq "/" UnaryExpression))
305
+ (rule _AdditiveExpression_1 "116.1" (star _AdditiveExpression_2))
306
+ (rule _AdditiveExpression_2 "116.2"
307
+ (alt _AdditiveExpression_3 _AdditiveExpression_4 _AdditiveExpression_5))
308
+ (rule _AdditiveExpression_3 "116.3" (seq "+" MultiplicativeExpression))
309
+ (rule _AdditiveExpression_4 "116.4" (seq "-" MultiplicativeExpression))
310
+ (rule _AdditiveExpression_5 "116.5"
311
+ (seq _AdditiveExpression_6 _AdditiveExpression_7))
312
+ (rule _AdditiveExpression_6 "116.6"
313
+ (alt NumericLiteralPositive NumericLiteralNegative))
314
+ (rule _AdditiveExpression_7 "116.7" (opt _AdditiveExpression_8))
315
+ (rule _AdditiveExpression_8 "116.8"
316
+ (alt _AdditiveExpression_9 _AdditiveExpression_10))
317
+ (rule _AdditiveExpression_9 "116.9" (seq "*" UnaryExpression))
318
+ (rule MultiplicativeExpression "117"
319
+ (seq UnaryExpression _MultiplicativeExpression_1))
320
+ (rule _MultiplicativeExpression_1 "117.1" (star _MultiplicativeExpression_2))
321
+ (rule _MultiplicativeExpression_2 "117.2"
322
+ (alt _MultiplicativeExpression_3 _MultiplicativeExpression_4))
323
+ (rule _MultiplicativeExpression_3 "117.3" (seq "*" UnaryExpression))
324
+ (rule _MultiplicativeExpression_4 "117.4" (seq "/" UnaryExpression))
325
+ (rule UnaryExpression "118"
326
+ (alt _UnaryExpression_1 _UnaryExpression_2 _UnaryExpression_3 PrimaryExpression))
327
+ (rule _UnaryExpression_1 "118.1" (seq "!" PrimaryExpression))
328
+ (rule _UnaryExpression_2 "118.2" (seq "+" PrimaryExpression))
329
+ (rule _UnaryExpression_3 "118.3" (seq "-" PrimaryExpression))
330
+ (rule PrimaryExpression "119"
331
+ (alt BrackettedExpression BuiltInCall iriOrFunction RDFLiteral NumericLiteral
332
+ BooleanLiteral Var ))
333
+ (rule BrackettedExpression "120" (seq "(" Expression ")"))
334
+ (rule BuiltInCall "121"
335
+ (alt Aggregate _BuiltInCall_1 _BuiltInCall_2 _BuiltInCall_3 _BuiltInCall_4
336
+ _BuiltInCall_5 _BuiltInCall_6 _BuiltInCall_7 _BuiltInCall_8 _BuiltInCall_9
337
+ _BuiltInCall_10 _BuiltInCall_11 _BuiltInCall_12 _BuiltInCall_13
338
+ _BuiltInCall_14 SubstringExpression _BuiltInCall_15 StrReplaceExpression
339
+ _BuiltInCall_16 _BuiltInCall_17 _BuiltInCall_18 _BuiltInCall_19
340
+ _BuiltInCall_20 _BuiltInCall_21 _BuiltInCall_22 _BuiltInCall_23
341
+ _BuiltInCall_24 _BuiltInCall_25 _BuiltInCall_26 _BuiltInCall_27
342
+ _BuiltInCall_28 _BuiltInCall_29 _BuiltInCall_30 _BuiltInCall_31
343
+ _BuiltInCall_32 _BuiltInCall_33 _BuiltInCall_34 _BuiltInCall_35
344
+ _BuiltInCall_36 _BuiltInCall_37 _BuiltInCall_38 _BuiltInCall_39
345
+ _BuiltInCall_40 _BuiltInCall_41 _BuiltInCall_42 _BuiltInCall_43
346
+ _BuiltInCall_44 _BuiltInCall_45 _BuiltInCall_46 _BuiltInCall_47
347
+ _BuiltInCall_48 _BuiltInCall_49 _BuiltInCall_50 RegexExpression ExistsFunc
348
+ NotExistsFunc ))
349
+ (rule _BuiltInCall_1 "121.1" (seq "STR" "(" Expression ")"))
350
+ (rule _BuiltInCall_10 "121.10" (seq "ABS" "(" Expression ")"))
351
+ (rule _BuiltInCall_11 "121.11" (seq "CEIL" "(" Expression ")"))
352
+ (rule _BuiltInCall_12 "121.12" (seq "FLOOR" "(" Expression ")"))
353
+ (rule _BuiltInCall_13 "121.13" (seq "ROUND" "(" Expression ")"))
354
+ (rule _BuiltInCall_14 "121.14" (seq "CONCAT" ExpressionList))
355
+ (rule _BuiltInCall_15 "121.15" (seq "STRLEN" "(" Expression ")"))
356
+ (rule _BuiltInCall_16 "121.16" (seq "UCASE" "(" Expression ")"))
357
+ (rule _BuiltInCall_17 "121.17" (seq "LCASE" "(" Expression ")"))
358
+ (rule _BuiltInCall_18 "121.18" (seq "ENCODE_FOR_URI" "(" Expression ")"))
359
+ (rule _BuiltInCall_19 "121.19" (seq "CONTAINS" "(" Expression "," Expression ")"))
360
+ (rule _BuiltInCall_2 "121.2" (seq "LANG" "(" Expression ")"))
361
+ (rule _BuiltInCall_20 "121.20" (seq "STRSTARTS" "(" Expression "," Expression ")"))
362
+ (rule _BuiltInCall_21 "121.21" (seq "STRENDS" "(" Expression "," Expression ")"))
363
+ (rule _BuiltInCall_22 "121.22" (seq "STRBEFORE" "(" Expression "," Expression ")"))
364
+ (rule _BuiltInCall_23 "121.23" (seq "STRAFTER" "(" Expression "," Expression ")"))
365
+ (rule _BuiltInCall_24 "121.24" (seq "YEAR" "(" Expression ")"))
366
+ (rule _BuiltInCall_25 "121.25" (seq "MONTH" "(" Expression ")"))
367
+ (rule _BuiltInCall_26 "121.26" (seq "DAY" "(" Expression ")"))
368
+ (rule _BuiltInCall_27 "121.27" (seq "HOURS" "(" Expression ")"))
369
+ (rule _BuiltInCall_28 "121.28" (seq "MINUTES" "(" Expression ")"))
370
+ (rule _BuiltInCall_29 "121.29" (seq "SECONDS" "(" Expression ")"))
371
+ (rule _BuiltInCall_30 "121.30" (seq "TIMEZONE" "(" Expression ")"))
372
+ (rule _BuiltInCall_3 "121.3" (seq "LANGMATCHES" "(" Expression "," Expression ")"))
373
+ (rule _BuiltInCall_31 "121.31" (seq "TZ" "(" Expression ")"))
374
+ (rule _BuiltInCall_32 "121.32" (seq "NOW" NIL))
375
+ (rule _BuiltInCall_33 "121.33" (seq "UUID" NIL))
376
+ (rule _BuiltInCall_34 "121.34" (seq "STRUUID" NIL))
377
+ (rule _BuiltInCall_35 "121.35" (seq "MD5" "(" Expression ")"))
378
+ (rule _BuiltInCall_36 "121.36" (seq "SHA1" "(" Expression ")"))
379
+ (rule _BuiltInCall_37 "121.37" (seq "SHA224" "(" Expression ")"))
380
+ (rule _BuiltInCall_38 "121.38" (seq "SHA256" "(" Expression ")"))
381
+ (rule _BuiltInCall_39 "121.39" (seq "SHA384" "(" Expression ")"))
382
+ (rule _BuiltInCall_4 "121.4" (seq "DATATYPE" "(" Expression ")"))
383
+ (rule _BuiltInCall_40 "121.40" (seq "SHA512" "(" Expression ")"))
384
+ (rule _BuiltInCall_41 "121.41" (seq "COALESCE" ExpressionList))
385
+ (rule _BuiltInCall_42 "121.42"
386
+ (seq "IF" "(" Expression "," Expression "," Expression ")"))
387
+ (rule _BuiltInCall_43 "121.43" (seq "STRLANG" "(" Expression "," Expression ")"))
388
+ (rule _BuiltInCall_44 "121.44" (seq "STRDT" "(" Expression "," Expression ")"))
389
+ (rule _BuiltInCall_45 "121.45" (seq "sameTerm" "(" Expression "," Expression ")"))
390
+ (rule _BuiltInCall_46 "121.46" (seq "isIRI" "(" Expression ")"))
391
+ (rule _BuiltInCall_47 "121.47" (seq "isURI" "(" Expression ")"))
392
+ (rule _BuiltInCall_48 "121.48" (seq "isBLANK" "(" Expression ")"))
393
+ (rule _BuiltInCall_49 "121.49" (seq "isLITERAL" "(" Expression ")"))
394
+ (rule _BuiltInCall_50 "121.50" (seq "isNUMERIC" "(" Expression ")"))
395
+ (rule _BuiltInCall_5 "121.5" (seq "BOUND" "(" Var ")"))
396
+ (rule _BuiltInCall_51 "121.51" (alt _BuiltInCall_52 NIL))
397
+ (rule _BuiltInCall_52 "121.52" (seq "(" Expression ")"))
398
+ (rule _BuiltInCall_6 "121.6" (seq "IRI" "(" Expression ")"))
399
+ (rule _BuiltInCall_7 "121.7" (seq "URI" "(" Expression ")"))
400
+ (rule _BuiltInCall_8 "121.8" (seq "BNODE" _BuiltInCall_51))
401
+ (rule _BuiltInCall_9 "121.9" (seq "RAND" NIL))
402
+ (rule RegexExpression "122"
403
+ (seq "REGEX" "(" Expression "," Expression _RegexExpression_1 ")"))
404
+ (rule _RegexExpression_1 "122.1" (opt _RegexExpression_2))
405
+ (rule _RegexExpression_2 "122.2" (seq "," Expression))
406
+ (rule SubstringExpression "123"
407
+ (seq "SUBSTR" "(" Expression "," Expression _SubstringExpression_1 ")"))
408
+ (rule _SubstringExpression_1 "123.1" (opt _SubstringExpression_2))
409
+ (rule _SubstringExpression_2 "123.2" (seq "," Expression))
410
+ (rule StrReplaceExpression "124"
411
+ (seq "REPLACE" "(" Expression "," Expression "," Expression
412
+ _StrReplaceExpression_1 ")" ))
413
+ (rule _StrReplaceExpression_1 "124.1" (opt _StrReplaceExpression_2))
414
+ (rule _StrReplaceExpression_2 "124.2" (seq "," Expression))
415
+ (rule ExistsFunc "125" (seq "EXISTS" GroupGraphPattern))
416
+ (rule NotExistsFunc "126" (seq "NOT" "EXISTS" GroupGraphPattern))
417
+ (rule Aggregate "127"
418
+ (alt _Aggregate_1 _Aggregate_2 _Aggregate_3 _Aggregate_4 _Aggregate_5
419
+ _Aggregate_6 _Aggregate_7 ))
420
+ (rule _Aggregate_10 "127.10" (opt "DISTINCT"))
421
+ (rule _Aggregate_1 "127.1" (seq "COUNT" "(" _Aggregate_8 _Aggregate_9 ")"))
422
+ (rule _Aggregate_11 "127.11" (opt "DISTINCT"))
423
+ (rule _Aggregate_12 "127.12" (opt "DISTINCT"))
424
+ (rule _Aggregate_13 "127.13" (opt "DISTINCT"))
425
+ (rule _Aggregate_14 "127.14" (opt "DISTINCT"))
426
+ (rule _Aggregate_15 "127.15" (opt "DISTINCT"))
427
+ (rule _Aggregate_16 "127.16" (opt _Aggregate_17))
428
+ (rule _Aggregate_17 "127.17" (seq ";" "SEPARATOR" "=" String))
429
+ (rule _Aggregate_2 "127.2" (seq "SUM" "(" _Aggregate_10 Expression ")"))
430
+ (rule _Aggregate_3 "127.3" (seq "MIN" "(" _Aggregate_11 Expression ")"))
431
+ (rule _Aggregate_4 "127.4" (seq "MAX" "(" _Aggregate_12 Expression ")"))
432
+ (rule _Aggregate_5 "127.5" (seq "AVG" "(" _Aggregate_13 Expression ")"))
433
+ (rule _Aggregate_6 "127.6" (seq "SAMPLE" "(" _Aggregate_14 Expression ")"))
434
+ (rule _Aggregate_7 "127.7"
435
+ (seq "GROUP_CONCAT" "(" _Aggregate_15 Expression _Aggregate_16 ")"))
436
+ (rule _Aggregate_8 "127.8" (opt "DISTINCT"))
437
+ (rule _Aggregate_9 "127.9" (alt "*" Expression))
438
+ (rule iriOrFunction "128" (seq iri _iriOrFunction_1))
439
+ (rule _iriOrFunction_1 "128.1" (opt ArgList))
440
+ (rule RDFLiteral "129" (seq String _RDFLiteral_1))
441
+ (rule _RDFLiteral_1 "129.1" (opt _RDFLiteral_2))
442
+ (rule _RDFLiteral_2 "129.2" (alt LANGTAG _RDFLiteral_3))
443
+ (rule _RDFLiteral_3 "129.3" (seq "^^" iri))
444
+ (rule NumericLiteral "130"
445
+ (alt NumericLiteralUnsigned NumericLiteralPositive NumericLiteralNegative))
446
+ (rule NumericLiteralUnsigned "131" (alt INTEGER DECIMAL DOUBLE))
447
+ (rule NumericLiteralPositive "132"
448
+ (alt INTEGER_POSITIVE DECIMAL_POSITIVE DOUBLE_POSITIVE))
449
+ (rule NumericLiteralNegative "133"
450
+ (alt INTEGER_NEGATIVE DECIMAL_NEGATIVE DOUBLE_NEGATIVE))
451
+ (rule BooleanLiteral "134" (alt "true" "false"))
452
+ (rule String "135"
453
+ (alt STRING_LITERAL1 STRING_LITERAL2 STRING_LITERAL_LONG1 STRING_LITERAL_LONG2))
454
+ (rule iri "136" (alt IRIREF PrefixedName))
455
+ (rule PrefixedName "137" (alt PNAME_LN PNAME_NS))
456
+ (rule BlankNode "138" (alt BLANK_NODE_LABEL ANON))
457
+ (terminal IRIREF "139" (seq "<" _IRIREF_1))
458
+ (terminal _IRIREF_1 "139.1" (range "^#x00-#x20<>\"{}|^`] | UCHAR)* '>'"))
459
+ (terminal PNAME_NS "140" (seq _PNAME_NS_1 ":"))
460
+ (terminal _PNAME_NS_1 "140.1" (opt PN_PREFIX))
461
+ (terminal PNAME_LN "141" (seq PNAME_NS PN_LOCAL))
462
+ (terminal BLANK_NODE_LABEL "142" (seq "_:" _BLANK_NODE_LABEL_1 _BLANK_NODE_LABEL_2))
463
+ (terminal _BLANK_NODE_LABEL_1 "142.1" (alt PN_CHARS_U _BLANK_NODE_LABEL_3))
464
+ (terminal _BLANK_NODE_LABEL_2 "142.2" (opt _BLANK_NODE_LABEL_4))
465
+ (terminal _BLANK_NODE_LABEL_3 "142.3" (range "0-9"))
466
+ (terminal _BLANK_NODE_LABEL_4 "142.4" (seq _BLANK_NODE_LABEL_5 PN_CHARS))
467
+ (terminal _BLANK_NODE_LABEL_5 "142.5" (star _BLANK_NODE_LABEL_6))
468
+ (terminal _BLANK_NODE_LABEL_6 "142.6" (alt PN_CHARS "."))
469
+ (terminal VAR1 "143" (seq "?" VARNAME))
470
+ (terminal VAR2 "144" (seq "$" VARNAME))
471
+ (terminal LANGTAG "145" (seq "@" _LANGTAG_1 _LANGTAG_2))
472
+ (terminal _LANGTAG_1 "145.1" (plus _LANGTAG_3))
473
+ (terminal _LANGTAG_2 "145.2" (star _LANGTAG_4))
474
+ (terminal _LANGTAG_3 "145.3" (range "a-zA-Z"))
475
+ (terminal _LANGTAG_4 "145.4" (seq "-" _LANGTAG_5))
476
+ (terminal _LANGTAG_5 "145.5" (plus _LANGTAG_6))
477
+ (terminal _LANGTAG_6 "145.6" (range "a-zA-Z0-9"))
478
+ (terminal INTEGER "146" (plus _INTEGER_1))
479
+ (terminal _INTEGER_1 "146.1" (range "0-9"))
480
+ (terminal DECIMAL "147" (seq _DECIMAL_1 "." _DECIMAL_2))
481
+ (terminal _DECIMAL_1 "147.1" (star _DECIMAL_3))
482
+ (terminal _DECIMAL_2 "147.2" (plus _DECIMAL_4))
483
+ (terminal _DECIMAL_3 "147.3" (range "0-9"))
484
+ (terminal _DECIMAL_4 "147.4" (range "0-9"))
485
+ (terminal DOUBLE "148" (alt _DOUBLE_1 _DOUBLE_2 _DOUBLE_3))
486
+ (terminal _DOUBLE_1 "148.1" (seq _DOUBLE_4 "." _DOUBLE_5 EXPONENT))
487
+ (terminal _DOUBLE_10 "148.10" (plus _DOUBLE_11))
488
+ (terminal _DOUBLE_11 "148.11" (range "0-9"))
489
+ (terminal _DOUBLE_2 "148.2" (seq "." _DOUBLE_8 EXPONENT))
490
+ (terminal _DOUBLE_3 "148.3" (seq _DOUBLE_10 EXPONENT))
491
+ (terminal _DOUBLE_4 "148.4" (plus _DOUBLE_6))
492
+ (terminal _DOUBLE_5 "148.5" (star _DOUBLE_7))
493
+ (terminal _DOUBLE_6 "148.6" (range "0-9"))
494
+ (terminal _DOUBLE_7 "148.7" (range "0-9"))
495
+ (terminal _DOUBLE_8 "148.8" (plus _DOUBLE_9))
496
+ (terminal _DOUBLE_9 "148.9" (range "0-9"))
497
+ (terminal INTEGER_POSITIVE "149" (seq "+" INTEGER))
498
+ (terminal DECIMAL_POSITIVE "150" (seq "+" DECIMAL))
499
+ (terminal DOUBLE_POSITIVE "151" (seq "+" DOUBLE))
500
+ (terminal INTEGER_NEGATIVE "152" (seq "-" INTEGER))
501
+ (terminal DECIMAL_NEGATIVE "153" (seq "-" DECIMAL))
502
+ (terminal DOUBLE_NEGATIVE "154" (seq "-" DOUBLE))
503
+ (terminal EXPONENT "155" (seq _EXPONENT_1 _EXPONENT_2 _EXPONENT_3))
504
+ (terminal _EXPONENT_1 "155.1" (range "eE"))
505
+ (terminal _EXPONENT_2 "155.2" (opt _EXPONENT_4))
506
+ (terminal _EXPONENT_3 "155.3" (plus _EXPONENT_5))
507
+ (terminal _EXPONENT_4 "155.4" (range "+-"))
508
+ (terminal _EXPONENT_5 "155.5" (range "0-9"))
509
+ (terminal STRING_LITERAL1 "156" (seq "'" _STRING_LITERAL1_1 "'"))
510
+ (terminal _STRING_LITERAL1_1 "156.1" (star _STRING_LITERAL1_2))
511
+ (terminal _STRING_LITERAL1_2 "156.2" (alt _STRING_LITERAL1_3 ECHAR))
512
+ (terminal _STRING_LITERAL1_3 "156.3" (range "^#x27#x5C#xA#xD"))
513
+ (terminal STRING_LITERAL2 "157" (seq "\"" _STRING_LITERAL2_1 "\""))
514
+ (terminal _STRING_LITERAL2_1 "157.1" (star _STRING_LITERAL2_2))
515
+ (terminal _STRING_LITERAL2_2 "157.2" (alt _STRING_LITERAL2_3 ECHAR))
516
+ (terminal _STRING_LITERAL2_3 "157.3" (range "^#x22#x5C#xA#xD"))
517
+ (terminal STRING_LITERAL_LONG1 "158" (seq "'''" _STRING_LITERAL_LONG1_1))
518
+ (terminal _STRING_LITERAL_LONG1_1 "158.1"
519
+ (seq _STRING_LITERAL_LONG1_2 _STRING_LITERAL_LONG1_3))
520
+ (terminal _STRING_LITERAL_LONG1_2 "158.2" (opt _STRING_LITERAL_LONG1_4))
521
+ (terminal _STRING_LITERAL_LONG1_3 "158.3" (range "^'] | ECHAR ))* \"'''\""))
522
+ (terminal _STRING_LITERAL_LONG1_4 "158.4" (alt "'" "''"))
523
+ (terminal STRING_LITERAL_LONG2 "159" (seq "\"\"\"" _STRING_LITERAL_LONG2_1))
524
+ (terminal _STRING_LITERAL_LONG2_1 "159.1"
525
+ (seq _STRING_LITERAL_LONG2_2 _STRING_LITERAL_LONG2_3))
526
+ (terminal _STRING_LITERAL_LONG2_2 "159.2" (opt _STRING_LITERAL_LONG2_4))
527
+ (terminal _STRING_LITERAL_LONG2_3 "159.3" (range "^\"] | ECHAR ))* '\"\"\"'"))
528
+ (terminal _STRING_LITERAL_LONG2_4 "159.4" (alt "\"" "\"\""))
529
+ (terminal ECHAR "160" (seq "\\" _ECHAR_1))
530
+ (terminal _ECHAR_1 "160.1" (range "tbnrf\"'"))
531
+ (terminal NIL "161" (seq "(" _NIL_1 ")"))
532
+ (terminal _NIL_1 "161.1" (star WS))
533
+ (terminal WS "162" (alt _WS_1 _WS_2 _WS_3 _WS_4))
534
+ (terminal _WS_1 "162.1" (hex "#x20"))
535
+ (terminal _WS_2 "162.2" (hex "#x9"))
536
+ (terminal _WS_3 "162.3" (hex "#xD"))
537
+ (terminal _WS_4 "162.4" (hex "#xA"))
538
+ (terminal ANON "163" (seq "[" _ANON_1 "]"))
539
+ (terminal _ANON_1 "163.1" (star WS))
540
+ (terminal PN_CHARS_BASE "164"
541
+ (alt _PN_CHARS_BASE_1 _PN_CHARS_BASE_2 _PN_CHARS_BASE_3 _PN_CHARS_BASE_4
542
+ _PN_CHARS_BASE_5 _PN_CHARS_BASE_6 _PN_CHARS_BASE_7 _PN_CHARS_BASE_8
543
+ _PN_CHARS_BASE_9 _PN_CHARS_BASE_10 _PN_CHARS_BASE_11 _PN_CHARS_BASE_12
544
+ _PN_CHARS_BASE_13 _PN_CHARS_BASE_14 ))
545
+ (terminal _PN_CHARS_BASE_10 "164.10" (range "#x2C00-#x2FEF"))
546
+ (terminal _PN_CHARS_BASE_1 "164.1" (range "A-Z"))
547
+ (terminal _PN_CHARS_BASE_11 "164.11" (range "#x3001-#xD7FF"))
548
+ (terminal _PN_CHARS_BASE_12 "164.12" (range "#xF900-#xFDCF"))
549
+ (terminal _PN_CHARS_BASE_13 "164.13" (range "#xFDF0-#xFFFD"))
550
+ (terminal _PN_CHARS_BASE_14 "164.14" (range "#x10000-#xEFFFF"))
551
+ (terminal _PN_CHARS_BASE_2 "164.2" (range "a-z"))
552
+ (terminal _PN_CHARS_BASE_3 "164.3" (range "#x00C0-#x00D6"))
553
+ (terminal _PN_CHARS_BASE_4 "164.4" (range "#x00D8-#x00F6"))
554
+ (terminal _PN_CHARS_BASE_5 "164.5" (range "#x00F8-#x02FF"))
555
+ (terminal _PN_CHARS_BASE_6 "164.6" (range "#x0370-#x037D"))
556
+ (terminal _PN_CHARS_BASE_7 "164.7" (range "#x037F-#x1FFF"))
557
+ (terminal _PN_CHARS_BASE_8 "164.8" (range "#x200C-#x200D"))
558
+ (terminal _PN_CHARS_BASE_9 "164.9" (range "#x2070-#x218F"))
559
+ (terminal PN_CHARS_U "165" (alt PN_CHARS_BASE "_"))
560
+ (terminal VARNAME "166" (seq _VARNAME_1 _VARNAME_2))
561
+ (terminal _VARNAME_1 "166.1" (alt PN_CHARS_U _VARNAME_3))
562
+ (terminal _VARNAME_2 "166.2" (star _VARNAME_4))
563
+ (terminal _VARNAME_3 "166.3" (range "0-9"))
564
+ (terminal _VARNAME_4 "166.4"
565
+ (alt PN_CHARS_U _VARNAME_5 _VARNAME_6 _VARNAME_7 _VARNAME_8))
566
+ (terminal _VARNAME_5 "166.5" (range "0-9"))
567
+ (terminal _VARNAME_6 "166.6" (hex "#x00B7"))
568
+ (terminal _VARNAME_7 "166.7" (range "#x0300-#x036F"))
569
+ (terminal _VARNAME_8 "166.8" (range "#x203F-#x2040"))
570
+ (terminal PN_CHARS "167"
571
+ (alt PN_CHARS_U "-" _PN_CHARS_1 _PN_CHARS_2 _PN_CHARS_3 _PN_CHARS_4))
572
+ (terminal _PN_CHARS_1 "167.1" (range "0-9"))
573
+ (terminal _PN_CHARS_2 "167.2" (hex "#x00B7"))
574
+ (terminal _PN_CHARS_3 "167.3" (range "#x0300-#x036F"))
575
+ (terminal _PN_CHARS_4 "167.4" (range "#x203F-#x2040"))
576
+ (terminal PN_PREFIX "168" (seq PN_CHARS_BASE _PN_PREFIX_1))
577
+ (terminal _PN_PREFIX_1 "168.1" (opt _PN_PREFIX_2))
578
+ (terminal _PN_PREFIX_2 "168.2" (seq _PN_PREFIX_3 PN_CHARS))
579
+ (terminal _PN_PREFIX_3 "168.3" (star _PN_PREFIX_4))
580
+ (terminal _PN_PREFIX_4 "168.4" (alt PN_CHARS "."))
581
+ (terminal PN_LOCAL "169" (seq _PN_LOCAL_1 _PN_LOCAL_2))
582
+ (terminal _PN_LOCAL_1 "169.1" (alt PN_CHARS_U _PN_LOCAL_3))
583
+ (terminal _PN_LOCAL_2 "169.2" (opt _PN_LOCAL_4))
584
+ (terminal _PN_LOCAL_3 "169.3" (range "0-9"))
585
+ (terminal _PN_LOCAL_4 "169.4" (seq _PN_LOCAL_5 PN_CHARS))
586
+ (terminal _PN_LOCAL_5 "169.5" (star _PN_LOCAL_6))
587
+ (terminal _PN_LOCAL_6 "169.6" (alt PN_CHARS "."))
588
+ (terminal PLX "170" (alt PERCENT PN_LOCAL_ESC))
589
+ (terminal PERCENT "171" (seq "%" HEX HEX))
590
+ (terminal HEX "172" (alt _HEX_1 _HEX_2 _HEX_3))
591
+ (terminal _HEX_1 "172.1" (range "0-9"))
592
+ (terminal _HEX_2 "172.2" (range "A-F"))
593
+ (terminal _HEX_3 "172.3" (range "a-f"))
594
+ (terminal PN_LOCAL_ESC "173" (seq "\\" _PN_LOCAL_ESC_1))
595
+ (terminal _PN_LOCAL_ESC_1 "173.1"
596
+ (alt "_" "~" "." "-" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" "/" "?" "#"
597
+ "@" "%" )) )