Updated syntax with a simpler one
This commit is contained in:
parent
38fa2d2e84
commit
aeb576024f
4465 changed files with 195554 additions and 526060 deletions
|
|
@ -14,78 +14,36 @@
|
|||
|
||||
bool lex_normal_s265(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map265(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(265, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(807, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(873, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < '*')))
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(anon_sym_GT_PIPE, lexer, s);
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s266(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map266(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(266, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if (s->lookahead != 0)
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(anon_sym_LT_AMP_DASH, lexer, s);
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s267(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map267(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(267, lexer, s));
|
||||
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(879, lexer, s));
|
||||
lex_accept_token(anon_sym_GT_AMP_DASH, lexer, s);
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s268(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map268(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(268, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(807, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(873, lexer, s));
|
||||
if (s->lookahead != 0)
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(anon_sym_LT_LT, lexer, s);
|
||||
if (s->lookahead == '-')
|
||||
return (lex_advance(271, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s269(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map269(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(269, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')')))
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(anon_sym_LT_LT, lexer, s);
|
||||
if (s->lookahead == '-')
|
||||
return (lex_advance(271, lexer, s));
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(325, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue