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