@@ -20,6 +20,7 @@ struct pcre {
20
20
struct c {};
21
21
struct class_named_name {};
22
22
struct content2 {};
23
+ struct content {};
23
24
struct content_in_capture {};
24
25
struct d {};
25
26
struct e {};
@@ -137,8 +138,9 @@ struct pcre {
137
138
static constexpr auto rule (s, ctll::set<' !' ,' ,' ,' -' ,' :' ,' <' ,' =' ,' >' ,' A' ,' B' ,' C' ,' D' ,' E' ,' F' ,' G' ,' H' ,' I' ,' J' ,' K' ,' L' ,' M' ,' N' ,' O' ,' P' ,' Q' ,' R' ,' S' ,' T' ,' ]' ,' _' ,' 0' ,' U' ,' V' ,' W' ,' X' ,' Y' ,' Z' ,' a' ,' b' ,' c' ,' d' ,' e' ,' f' ,' g' ,' h' ,' i' ,' j' ,' k' ,' l' ,' m' ,' n' ,' o' ,' p' ,' q' ,' r' ,' s' ,' t' ,' u' ,' v' ,' w' ,' x' ,' y' ,' z' ,' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' >) -> ctll::push<ctll::anything, push_character, repeat, string2, content2>;
138
139
static constexpr auto rule (s, _others) -> ctll::push<ctll::anything, push_character, repeat, string2, content2>;
139
140
static constexpr auto rule (s, ctll::term<' .' >) -> ctll::push<ctll::anything, push_character_anything, repeat, string2, content2>;
141
+ static constexpr auto rule (s, ctll::term<' |' >) -> ctll::push<ctll::anything, push_empty, content, make_alternate>;
140
142
static constexpr auto rule (s, ctll::epsilon) -> ctll::push<push_empty>;
141
- static constexpr auto rule (s, ctll::set<' \x29 ' ,' *' ,' +' ,' ?' ,' \x7B ' ,' | ' , ' \x7D ' >) -> ctll::reject;
143
+ static constexpr auto rule (s, ctll::set<' \x29 ' ,' *' ,' +' ,' ?' ,' \x7B ' ,' \x7D ' >) -> ctll::reject;
142
144
143
145
static constexpr auto rule (a, ctll::term<' \\ ' >) -> ctll::push<ctll::anything, backslash, repeat, string2, content2, make_alternate>;
144
146
static constexpr auto rule (a, ctll::term<' [' >) -> ctll::push<ctll::anything, c, repeat, string2, content2, make_alternate>;
@@ -201,8 +203,9 @@ struct pcre {
201
203
static constexpr auto rule (block, ctll::set<' !' ,' ,' ,' -' ,' :' ,' <' ,' =' ,' >' ,' A' ,' B' ,' C' ,' D' ,' E' ,' F' ,' G' ,' H' ,' I' ,' J' ,' K' ,' L' ,' M' ,' N' ,' O' ,' P' ,' Q' ,' R' ,' S' ,' T' ,' ]' ,' _' ,' 0' ,' U' ,' V' ,' W' ,' X' ,' Y' ,' Z' ,' a' ,' b' ,' c' ,' d' ,' e' ,' f' ,' g' ,' h' ,' i' ,' j' ,' k' ,' l' ,' m' ,' n' ,' o' ,' p' ,' q' ,' r' ,' s' ,' t' ,' u' ,' v' ,' w' ,' x' ,' y' ,' z' ,' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' >) -> ctll::push<ctll::anything, push_character, repeat, string2, content2, make_capture, ctll::term<'\x29'>>;
202
204
static constexpr auto rule (block, _others) -> ctll::push<ctll::anything, push_character, repeat, string2, content2, make_capture, ctll::term<'\x29'>>;
203
205
static constexpr auto rule (block, ctll::term<' .' >) -> ctll::push<ctll::anything, push_character_anything, repeat, string2, content2, make_capture, ctll::term<'\x29'>>;
206
+ static constexpr auto rule (block, ctll::term<' |' >) -> ctll::push<ctll::anything, push_empty, content, make_alternate, make_capture, ctll::term<'\x29'>>;
204
207
static constexpr auto rule (block, ctll::term<' \x29 ' >) -> ctll::push<push_empty, make_capture, ctll::anything>;
205
- static constexpr auto rule (block, ctll::set<' *' ,' +' ,' \x7B ' ,' | ' , ' \x7D ' >) -> ctll::reject;
208
+ static constexpr auto rule (block, ctll::set<' *' ,' +' ,' \x7B ' ,' \x7D ' >) -> ctll::reject;
206
209
207
210
static constexpr auto rule (block_name2, ctll::set<' >' ,' \x7D ' >) -> ctll::epsilon;
208
211
static constexpr auto rule (block_name2, ctll::set<' 0' ,' A' ,' B' ,' C' ,' D' ,' E' ,' F' ,' G' ,' H' ,' I' ,' J' ,' K' ,' L' ,' M' ,' N' ,' O' ,' P' ,' Q' ,' R' ,' S' ,' T' ,' U' ,' V' ,' W' ,' X' ,' Y' ,' Z' ,' _' ,' a' ,' b' ,' c' ,' d' ,' e' ,' f' ,' g' ,' h' ,' i' ,' j' ,' k' ,' l' ,' m' ,' n' ,' o' ,' p' ,' q' ,' r' ,' s' ,' t' ,' u' ,' v' ,' w' ,' x' ,' y' ,' z' ,' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' >) -> ctll::push<ctll::anything, push_name, block_name2>;
@@ -232,6 +235,16 @@ struct pcre {
232
235
static constexpr auto rule (content2, ctll::epsilon) -> ctll::epsilon;
233
236
static constexpr auto rule (content2, ctll::term<' |' >) -> ctll::push<ctll::anything, a>;
234
237
238
+ static constexpr auto rule (content, ctll::term<' \\ ' >) -> ctll::push<ctll::anything, backslash, repeat, string2, content2>;
239
+ static constexpr auto rule (content, ctll::term<' [' >) -> ctll::push<ctll::anything, c, repeat, string2, content2>;
240
+ static constexpr auto rule (content, ctll::term<' \x28 ' >) -> ctll::push<ctll::anything, prepare_capture, block, repeat, string2, content2>;
241
+ static constexpr auto rule (content, ctll::term<' ^' >) -> ctll::push<ctll::anything, push_assert_begin, repeat, string2, content2>;
242
+ static constexpr auto rule (content, ctll::term<' $' >) -> ctll::push<ctll::anything, push_assert_end, repeat, string2, content2>;
243
+ static constexpr auto rule (content, ctll::set<' !' ,' ,' ,' -' ,' :' ,' <' ,' =' ,' >' ,' A' ,' B' ,' C' ,' D' ,' E' ,' F' ,' G' ,' H' ,' I' ,' J' ,' K' ,' L' ,' M' ,' N' ,' O' ,' P' ,' Q' ,' R' ,' S' ,' T' ,' ]' ,' _' ,' 0' ,' U' ,' V' ,' W' ,' X' ,' Y' ,' Z' ,' a' ,' b' ,' c' ,' d' ,' e' ,' f' ,' g' ,' h' ,' i' ,' j' ,' k' ,' l' ,' m' ,' n' ,' o' ,' p' ,' q' ,' r' ,' s' ,' t' ,' u' ,' v' ,' w' ,' x' ,' y' ,' z' ,' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' >) -> ctll::push<ctll::anything, push_character, repeat, string2, content2>;
244
+ static constexpr auto rule (content, _others) -> ctll::push<ctll::anything, push_character, repeat, string2, content2>;
245
+ static constexpr auto rule (content, ctll::term<' .' >) -> ctll::push<ctll::anything, push_character_anything, repeat, string2, content2>;
246
+ static constexpr auto rule (content, ctll::set<' \x29 ' ,' *' ,' +' ,' ?' ,' \x7B ' ,' |' ,' \x7D ' >) -> ctll::reject;
247
+
235
248
static constexpr auto rule (content_in_capture, ctll::term<' \\ ' >) -> ctll::push<ctll::anything, backslash, repeat, string2, content2>;
236
249
static constexpr auto rule (content_in_capture, ctll::term<' [' >) -> ctll::push<ctll::anything, c, repeat, string2, content2>;
237
250
static constexpr auto rule (content_in_capture, ctll::term<' \x28 ' >) -> ctll::push<ctll::anything, prepare_capture, block, repeat, string2, content2>;
@@ -240,8 +253,9 @@ struct pcre {
240
253
static constexpr auto rule (content_in_capture, ctll::set<' !' ,' ,' ,' -' ,' :' ,' <' ,' =' ,' >' ,' A' ,' B' ,' C' ,' D' ,' E' ,' F' ,' G' ,' H' ,' I' ,' J' ,' K' ,' L' ,' M' ,' N' ,' O' ,' P' ,' Q' ,' R' ,' S' ,' T' ,' ]' ,' _' ,' 0' ,' U' ,' V' ,' W' ,' X' ,' Y' ,' Z' ,' a' ,' b' ,' c' ,' d' ,' e' ,' f' ,' g' ,' h' ,' i' ,' j' ,' k' ,' l' ,' m' ,' n' ,' o' ,' p' ,' q' ,' r' ,' s' ,' t' ,' u' ,' v' ,' w' ,' x' ,' y' ,' z' ,' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' >) -> ctll::push<ctll::anything, push_character, repeat, string2, content2>;
241
254
static constexpr auto rule (content_in_capture, _others) -> ctll::push<ctll::anything, push_character, repeat, string2, content2>;
242
255
static constexpr auto rule (content_in_capture, ctll::term<' .' >) -> ctll::push<ctll::anything, push_character_anything, repeat, string2, content2>;
256
+ static constexpr auto rule (content_in_capture, ctll::term<' |' >) -> ctll::push<ctll::anything, push_empty, content, make_alternate>;
243
257
static constexpr auto rule (content_in_capture, ctll::term<' \x29 ' >) -> ctll::push<push_empty>;
244
- static constexpr auto rule (content_in_capture, ctll::set<' *' ,' +' ,' ?' ,' \x7B ' ,' | ' , ' \x7D ' >) -> ctll::reject;
258
+ static constexpr auto rule (content_in_capture, ctll::set<' *' ,' +' ,' ?' ,' \x7B ' ,' \x7D ' >) -> ctll::reject;
245
259
246
260
static constexpr auto rule (d, ctll::term<' <' >) -> ctll::push<ctll::anything, block_name, ctll::term<'>'>, content_in_capture, make_capture_with_name, ctll::term<'\x29'>>;
247
261
static constexpr auto rule (d, ctll::term<' :' >) -> ctll::push<reset_capture, ctll::anything, content_in_capture, ctll::term<'\x29'>>;
0 commit comments