-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.parlex
executable file
·216 lines (179 loc) · 4.74 KB
/
test.parlex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
character set: cr_lf codePoint00000A codePoint00000D
character set inverted: not_cr_not_lf cr_lf
character set: hex_digit 0123456789abcdefABCDEF
character set inverted: not_white_space white_space
character set intersection: not_white_space_not_cr_not_lf not_white_space not_cr_not_lf
character set intersection: white_space_not_cr_not_lf white_space not_cr_not_lf
relation:
| : codePoint00000A
| : codePoint00000D
|| : newline
relation:
| : codePoint00000D
| : codePoint00000A
|| : newline
exemplar:
_
| : letter_or_digit_or_underscore
letter is a letter_or_digit_or_underscore
digit is a letter_or_digit_or_underscore
relation:
| : letter_or_digit_or_underscore
| : letter_or_digit_or_underscore*
|| : name
exemplar:
a*
| : name
|| : product_name
name is a product_name
exemplar:
| | : a_product
| : codePoint000020*
| : codePoint000020*
| : white_space
| : white_space
| | : product_name
| | : product_span_without_newline
exemplar:
| : a_product
| : codePoint000020*
| : white_space
| : white_space
| | : product_name
| | : product_span_without_newline
relation:
| : product_span_without_newline
| : newline
|| : product_span
exemplar:
relation:
| : white_space_not_cr_not_lf*
| | : relation_start
relation:
| : product_span*
| : newline
|| : product_span_set
relation:
| : relation_start
| : newline
| : product_span_set
| | : relation
exemplar:
exemplar:
| : white_space_not_cr_not_lf*
| | : exemplar_start
relation:
| : not_cr_not_lf
| : not_cr_not_lf*
|| : exemplar_text
relation:
| : exemplar_start
| : newline
| : exemplar_text
| : newline
| : product_span_set
| | : exemplar
exemplar:
a is a b
| : product_name
| : product_name
| | : is_a_relation_without_newline
exemplar:
a is an b
| : product_name
| : product_name
| | : is_a_relation_without_newline
relation:
| : is_a_relation_without_newline
| : newline
|| : is_a_relation
exemplar:
a precedes b
| : product_name
| : product_name
| | : precedes_without_newline
relation:
| : precedes_without_newline
| : newline
|| : precedes
exemplar:
codePoint000000
| : hex_digit
| : hex_digit
| : hex_digit
| : hex_digit
| : hex_digit
| : hex_digit
| | : code_point_name
relation:
| : not_white_space_not_cr_not_lf
| : not_white_space_not_cr_not_lf*
|| : character_list
character_list is a character_set_list_entry
code_point_name is a character_set_list_entry
code_point_name precedes character_list
relation:
| : white_space_not_cr_not_lf
| : white_space_not_cr_not_lf*
| : character_set_list_entry
| | : character_set_list_entry_with_white_space
exemplar:
character set: my_char_set foobar
| | : name
| | : character_set_list_entry_with_white_space*
| | : character_set_without_newline
relation:
| : character_set_without_newline
| : white_space_not_cr_not_lf*
| : newline
| | : character_set
relation:
| : white_space_not_cr_not_lf
| : white_space_not_cr_not_lf*
| : name
| | : character_set_name_with_white_space
exemplar:
character set inverted: my_char_set foobar
| | : name
| | : character_set_name_with_white_space
| | : character_set_inverted_without_newline
relation:
| : character_set_inverted_without_newline
| : white_space_not_cr_not_lf*
| : newline
| : newline*
| | : character_set_inverted
exemplar:
character set union: my_char_set foobar
| | : name
| | : character_set_name_with_white_space*
| | : character_set_union_without_newline
relation:
| : character_set_union_without_newline
| : white_space_not_cr_not_lf*
| : newline
| : newline*
| | : character_set_union
exemplar:
character set intersection: my_char_set foobar
| | : name
| | : character_set_name_with_white_space*
| | : character_set_intersection_without_newline
relation:
| : character_set_intersection_without_newline
| : white_space_not_cr_not_lf*
| : newline
| | : character_set_intersection
relation is a top_level_entry
exemplar is a top_level_entry
is_a_relation is a top_level_entry
precedes is a top_level_entry
character_set is a top_level_entry
character_set_inverted is a top_level_entry
character_set_union is a top_level_entry
character_set_intersection is a top_level_entry
newline is a top_level_entry
relation:
| : top_level_entry
| : top_level_entry*
|| : document