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,84 +14,50 @@
|
|||
|
||||
bool lex_normal_s250(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map250(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(250, 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_EQ, lexer, s);
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(337, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s251(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map251(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(251, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(806, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= '_' && s->lookahead <= 'z')))
|
||||
return (lex_advance(868, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')')))
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(anon_sym_EQ, lexer, s);
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(213, lexer, s));
|
||||
if ((!s->eof && \
|
||||
set_contains(sym__comment_word_character_set_1(), 12, \
|
||||
s->lookahead)))
|
||||
return (lex_advance(482, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s252(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map252(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(252, 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_LT, lexer, s);
|
||||
if (s->lookahead == '&')
|
||||
return (lex_advance(263, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s253(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map253(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(253, 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, lexer, s);
|
||||
if (s->lookahead == '&')
|
||||
return (lex_advance(263, lexer, s));
|
||||
if (s->lookahead == '<')
|
||||
return (lex_advance(269, lexer, s));
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(339, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s254(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map254(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(254, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(806, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= '_' && s->lookahead <= 'z')))
|
||||
return (lex_advance(868, lexer, s));
|
||||
if (s->lookahead != 0)
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(anon_sym_LT, lexer, s);
|
||||
if (s->lookahead == '&')
|
||||
return (lex_advance(263, lexer, s));
|
||||
if (s->lookahead == '<')
|
||||
return (lex_advance(268, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue