|
2 | 2 | (rule _empty "0" (first _eps) (seq))
|
3 | 3 | (rule ebnf "1"
|
4 | 4 | (start #t)
|
5 |
| - (first "@pass" "@terminals" LHS _eps) |
| 5 | + (first '@pass' '@terminals' LHS _eps) |
6 | 6 | (follow _eof)
|
7 | 7 | (cleanup star)
|
8 | 8 | (alt _empty _ebnf_2))
|
9 | 9 | (rule _ebnf_2 "1.2"
|
10 |
| - (first "@pass" "@terminals" LHS) |
| 10 | + (first '@pass' '@terminals' LHS) |
11 | 11 | (follow _eof)
|
12 | 12 | (cleanup merge)
|
13 | 13 | (seq _ebnf_1 ebnf))
|
14 | 14 | (rule _ebnf_1 "1.1"
|
15 |
| - (first "@pass" "@terminals" LHS) |
16 |
| - (follow "@pass" "@terminals" LHS _eof) |
| 15 | + (first '@pass' '@terminals' LHS) |
| 16 | + (follow '@pass' '@terminals' LHS _eof) |
17 | 17 | (alt declaration rule))
|
18 | 18 | (rule declaration "2"
|
19 |
| - (first "@pass" "@terminals") |
20 |
| - (follow "@pass" "@terminals" LHS _eof) |
21 |
| - (alt "@terminals" pass)) |
22 |
| - (rule rule "3" (first LHS) (follow "@pass" "@terminals" LHS _eof) (seq LHS expression)) |
| 19 | + (first '@pass' '@terminals') |
| 20 | + (follow '@pass' '@terminals' LHS _eof) |
| 21 | + (alt '@terminals' pass)) |
| 22 | + (rule rule "3" (first LHS) (follow '@pass' '@terminals' LHS _eof) (seq LHS expression)) |
23 | 23 | (rule expression "4"
|
24 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
25 |
| - (follow ")" "@pass" "@terminals" LHS _eof) |
| 24 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 25 | + (follow ')' '@pass' '@terminals' LHS _eof) |
26 | 26 | (seq alt))
|
27 | 27 | (rule alt "5"
|
28 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
29 |
| - (follow ")" "@pass" "@terminals" LHS _eof) |
| 28 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 29 | + (follow ')' '@pass' '@terminals' LHS _eof) |
30 | 30 | (seq seq _alt_1))
|
31 | 31 | (rule _alt_1 "5.1"
|
32 |
| - (first _eps "|") |
33 |
| - (follow ")" "@pass" "@terminals" LHS _eof) |
| 32 | + (first _eps '|') |
| 33 | + (follow ')' '@pass' '@terminals' LHS _eof) |
34 | 34 | (cleanup star)
|
35 | 35 | (alt _empty _alt_3))
|
36 | 36 | (rule _alt_3 "5.3"
|
37 |
| - (first "|") |
38 |
| - (follow ")" "@pass" "@terminals" LHS _eof) |
| 37 | + (first '|') |
| 38 | + (follow ')' '@pass' '@terminals' LHS _eof) |
39 | 39 | (cleanup merge)
|
40 | 40 | (seq _alt_2 _alt_1))
|
41 | 41 | (rule _alt_2 "5.2"
|
42 |
| - (first "|") |
43 |
| - (follow ")" "@pass" "@terminals" LHS _eof "|") |
44 |
| - (seq "|" seq)) |
| 42 | + (first '|') |
| 43 | + (follow ')' '@pass' '@terminals' LHS _eof '|') |
| 44 | + (seq '|' seq)) |
45 | 45 | (rule seq "6"
|
46 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
47 |
| - (follow ")" "@pass" "@terminals" LHS _eof "|") |
| 46 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 47 | + (follow ')' '@pass' '@terminals' LHS _eof '|') |
48 | 48 | (cleanup plus)
|
49 | 49 | (seq diff _seq_1))
|
50 | 50 | (rule _seq_1 "6.1"
|
51 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL _eps) |
52 |
| - (follow ")" "@pass" "@terminals" LHS _eof "|") |
| 51 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL _eps) |
| 52 | + (follow ')' '@pass' '@terminals' LHS _eof '|') |
53 | 53 | (cleanup star)
|
54 | 54 | (alt _empty _seq_2))
|
55 | 55 | (rule _seq_2 "6.2"
|
56 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
57 |
| - (follow ")" "@pass" "@terminals" LHS _eof "|") |
| 56 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 57 | + (follow ')' '@pass' '@terminals' LHS _eof '|') |
58 | 58 | (cleanup merge)
|
59 | 59 | (seq diff _seq_1))
|
60 | 60 | (rule diff "7"
|
61 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
62 |
| - (follow "(" ")" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 STRING2 |
63 |
| - SYMBOL _eof "|" ) |
| 61 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 62 | + (follow '(' ')' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 STRING2 |
| 63 | + SYMBOL _eof '|' ) |
64 | 64 | (seq postfix _diff_1))
|
65 | 65 | (rule _diff_1 "7.1"
|
66 |
| - (first "-" _eps) |
67 |
| - (follow "(" ")" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 STRING2 |
68 |
| - SYMBOL _eof "|" ) |
| 66 | + (first '-' _eps) |
| 67 | + (follow '(' ')' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 STRING2 |
| 68 | + SYMBOL _eof '|' ) |
69 | 69 | (cleanup opt)
|
70 | 70 | (alt _empty _diff_2))
|
71 | 71 | (rule _diff_2 "7.2"
|
72 |
| - (first "-") |
73 |
| - (follow "(" ")" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 STRING2 |
74 |
| - SYMBOL _eof "|" ) |
75 |
| - (seq "-" postfix)) |
| 72 | + (first '-') |
| 73 | + (follow '(' ')' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 STRING2 |
| 74 | + SYMBOL _eof '|' ) |
| 75 | + (seq '-' postfix)) |
76 | 76 | (rule postfix "8"
|
77 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
78 |
| - (follow "(" ")" "-" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 |
79 |
| - STRING2 SYMBOL _eof "|" ) |
| 77 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 78 | + (follow '(' ')' '-' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 |
| 79 | + STRING2 SYMBOL _eof '|' ) |
80 | 80 | (seq primary _postfix_1))
|
81 | 81 | (rule _postfix_1 "8.1"
|
82 | 82 | (first POSTFIX _eps)
|
83 |
| - (follow "(" ")" "-" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 |
84 |
| - STRING2 SYMBOL _eof "|" ) |
| 83 | + (follow '(' ')' '-' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 |
| 84 | + STRING2 SYMBOL _eof '|' ) |
85 | 85 | (cleanup opt)
|
86 | 86 | (alt _empty POSTFIX))
|
87 | 87 | (rule primary "9"
|
88 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
89 |
| - (follow "(" ")" "-" "@pass" "@terminals" HEX LHS O_RANGE POSTFIX RANGE |
90 |
| - STRING1 STRING2 SYMBOL _eof "|" ) |
| 88 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 89 | + (follow '(' ')' '-' '@pass' '@terminals' HEX LHS O_RANGE POSTFIX RANGE |
| 90 | + STRING1 STRING2 SYMBOL _eof '|' ) |
91 | 91 | (alt HEX SYMBOL O_RANGE RANGE STRING1 STRING2 _primary_1))
|
92 | 92 | (rule _primary_1 "9.1"
|
93 |
| - (first "(") |
94 |
| - (follow "(" ")" "-" "@pass" "@terminals" HEX LHS O_RANGE POSTFIX RANGE |
95 |
| - STRING1 STRING2 SYMBOL _eof "|" ) |
96 |
| - (seq "(" expression ")")) |
| 93 | + (first '(') |
| 94 | + (follow '(' ')' '-' '@pass' '@terminals' HEX LHS O_RANGE POSTFIX RANGE |
| 95 | + STRING1 STRING2 SYMBOL _eof '|' ) |
| 96 | + (seq '(' expression ')')) |
97 | 97 | (rule pass "10"
|
98 |
| - (first "@pass") |
99 |
| - (follow "@pass" "@terminals" LHS _eof) |
100 |
| - (seq "@pass" expression)) |
| 98 | + (first '@pass') |
| 99 | + (follow '@pass' '@terminals' LHS _eof) |
| 100 | + (seq '@pass' expression)) |
101 | 101 | (terminals _terminals (seq))
|
102 |
| - (terminal LHS "11" (seq (opt (seq "[" SYMBOL "]" (plus " "))) SYMBOL (star " ") "::=")) |
103 |
| - (terminal SYMBOL "12" (plus (alt (range "a-z") (range "A-Z") (range "0-9") "_" "."))) |
104 |
| - (terminal HEX "13" (seq "#x" (plus (alt (range "a-f") (range "A-F") (range "0-9"))))) |
| 102 | + (terminal LHS "11" (seq (opt (seq '[' SYMBOL ']' (plus ' '))) SYMBOL (star ' ') '::=')) |
| 103 | + (terminal SYMBOL "12" (plus (alt (range "a-z") (range "A-Z") (range "0-9") '_' '.'))) |
| 104 | + (terminal HEX "13" (seq '#x' (plus (alt (range "a-f") (range "A-F") (range "0-9"))))) |
105 | 105 | (terminal RANGE "14"
|
106 |
| - (seq "[" |
107 |
| - (plus (alt (seq R_CHAR "-" R_CHAR) (seq HEX "-" HEX) R_CHAR HEX)) |
108 |
| - (opt "-") |
109 |
| - (diff "]" LHS)) ) |
| 106 | + (seq '[' |
| 107 | + (plus (alt (seq R_CHAR '-' R_CHAR) (seq HEX '-' HEX) R_CHAR HEX)) |
| 108 | + (opt '-') |
| 109 | + (diff ']' LHS)) ) |
110 | 110 | (terminal O_RANGE "15"
|
111 |
| - (seq "[^" (plus (alt (seq R_CHAR "-" R_CHAR) (seq HEX "-" HEX) R_CHAR HEX)) (opt "-") "]")) |
112 |
| - (terminal STRING1 "16" (seq "\"" (star (diff CHAR "\"")) "\"")) |
| 111 | + (seq '[^' (plus (alt (seq R_CHAR '-' R_CHAR) (seq HEX '-' HEX) R_CHAR HEX)) (opt '-') ']')) |
| 112 | + (terminal STRING1 "16" (seq '"' (star (diff CHAR '"')) '"')) |
113 | 113 | (terminal STRING2 "17" (seq "'" (star (diff CHAR "'")) "'"))
|
114 | 114 | (terminal CHAR "18"
|
115 | 115 | (alt
|
116 | 116 | (range "#x9#xA#xD")
|
117 | 117 | (range "#x20-#xD7FF")
|
118 | 118 | (range "#xE000-#xFFFD")
|
119 | 119 | (range "#x10000-#x10FFFF")) )
|
120 |
| - (terminal R_CHAR "19" (diff CHAR (alt "]" "-" HEX))) |
| 120 | + (terminal R_CHAR "19" (diff CHAR (alt ']' '-' HEX))) |
121 | 121 | (terminal POSTFIX "20" (range "?*+"))
|
122 | 122 | (terminal PASS "21"
|
123 | 123 | (alt
|
124 | 124 | (range "#x9#xA#xD#x20")
|
125 |
| - (seq (alt (diff "#" "#x") "//") (star (range "^#xA#xD"))) |
126 |
| - (seq "/*" (star (alt (opt (seq "*" (range "^/"))) (range "^*"))) "*/") |
127 |
| - (seq "(*" (star (alt (opt (seq "*" (range "^)"))) (range "^*"))) "*)")) ) |
| 125 | + (seq (alt (diff '#' '#x') '//') (star (range "^#xA#xD"))) |
| 126 | + (seq '/*' (star (alt (opt (seq '*' (range "^/"))) (range "^*"))) '*/') |
| 127 | + (seq '(*' (star (alt (opt (seq '*' (range "^)"))) (range "^*"))) '*)')) ) |
128 | 128 | (pass _pass (seq PASS))
|
129 |
| - (rule _ebnf_3 "1.3" (first "@pass" "@terminals" LHS _eps) (follow _eof) (seq ebnf)) |
| 129 | + (rule _ebnf_3 "1.3" (first '@pass' '@terminals' LHS _eps) (follow _eof) (seq ebnf)) |
130 | 130 | (rule _rule_1 "3.1"
|
131 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
132 |
| - (follow "@pass" "@terminals" LHS _eof) |
| 131 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 132 | + (follow '@pass' '@terminals' LHS _eof) |
133 | 133 | (seq expression))
|
134 | 134 | (rule _alt_4 "5.4"
|
135 |
| - (first _eps "|") |
136 |
| - (follow ")" "@pass" "@terminals" LHS _eof) |
| 135 | + (first _eps '|') |
| 136 | + (follow ')' '@pass' '@terminals' LHS _eof) |
137 | 137 | (seq _alt_1))
|
138 | 138 | (rule _alt_5 "5.5"
|
139 |
| - (first _eps "|") |
140 |
| - (follow ")" "@pass" "@terminals" LHS _eof) |
| 139 | + (first _eps '|') |
| 140 | + (follow ')' '@pass' '@terminals' LHS _eof) |
141 | 141 | (seq _alt_1))
|
142 | 142 | (rule _alt_6 "5.6"
|
143 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
144 |
| - (follow ")" "@pass" "@terminals" LHS _eof "|") |
| 143 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 144 | + (follow ')' '@pass' '@terminals' LHS _eof '|') |
145 | 145 | (seq seq))
|
146 | 146 | (rule _seq_3 "6.3"
|
147 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL _eps) |
148 |
| - (follow ")" "@pass" "@terminals" LHS _eof "|") |
| 147 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL _eps) |
| 148 | + (follow ')' '@pass' '@terminals' LHS _eof '|') |
149 | 149 | (seq _seq_1))
|
150 | 150 | (rule _seq_4 "6.4"
|
151 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL _eps) |
152 |
| - (follow ")" "@pass" "@terminals" LHS _eof "|") |
| 151 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL _eps) |
| 152 | + (follow ')' '@pass' '@terminals' LHS _eof '|') |
153 | 153 | (seq _seq_1))
|
154 | 154 | (rule _diff_3 "7.3"
|
155 |
| - (first "-" _eps) |
156 |
| - (follow "(" ")" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 STRING2 |
157 |
| - SYMBOL _eof "|" ) |
| 155 | + (first '-' _eps) |
| 156 | + (follow '(' ')' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 STRING2 |
| 157 | + SYMBOL _eof '|' ) |
158 | 158 | (seq _diff_1))
|
159 | 159 | (rule _diff_4 "7.4"
|
160 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
161 |
| - (follow "(" ")" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 STRING2 |
162 |
| - SYMBOL _eof "|" ) |
| 160 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 161 | + (follow '(' ')' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 STRING2 |
| 162 | + SYMBOL _eof '|' ) |
163 | 163 | (seq postfix))
|
164 | 164 | (rule _postfix_2 "8.2"
|
165 | 165 | (first POSTFIX _eps)
|
166 |
| - (follow "(" ")" "-" "@pass" "@terminals" HEX LHS O_RANGE RANGE STRING1 |
167 |
| - STRING2 SYMBOL _eof "|" ) |
| 166 | + (follow '(' ')' '-' '@pass' '@terminals' HEX LHS O_RANGE RANGE STRING1 |
| 167 | + STRING2 SYMBOL _eof '|' ) |
168 | 168 | (seq _postfix_1))
|
169 | 169 | (rule _primary_2 "9.2"
|
170 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
171 |
| - (follow "(" ")" "-" "@pass" "@terminals" HEX LHS O_RANGE POSTFIX RANGE |
172 |
| - STRING1 STRING2 SYMBOL _eof "|" ) |
173 |
| - (seq expression ")")) |
| 170 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 171 | + (follow '(' ')' '-' '@pass' '@terminals' HEX LHS O_RANGE POSTFIX RANGE |
| 172 | + STRING1 STRING2 SYMBOL _eof '|' ) |
| 173 | + (seq expression ')')) |
174 | 174 | (rule _pass_1 "10.1"
|
175 |
| - (first "(" HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
176 |
| - (follow "@pass" "@terminals" LHS _eof) |
| 175 | + (first '(' HEX O_RANGE RANGE STRING1 STRING2 SYMBOL) |
| 176 | + (follow '@pass' '@terminals' LHS _eof) |
177 | 177 | (seq expression))
|
178 | 178 | (rule _primary_3 "9.3"
|
179 |
| - (first ")") |
180 |
| - (follow "(" ")" "-" "@pass" "@terminals" HEX LHS O_RANGE POSTFIX RANGE |
181 |
| - STRING1 STRING2 SYMBOL _eof "|" ) |
182 |
| - (seq ")")) ) |
| 179 | + (first ')') |
| 180 | + (follow '(' ')' '-' '@pass' '@terminals' HEX LHS O_RANGE POSTFIX RANGE |
| 181 | + STRING1 STRING2 SYMBOL _eof '|' ) |
| 182 | + (seq ')')) ) |
0 commit comments