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,74 +14,97 @@
|
|||
|
||||
bool lex_normal_s425(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map425(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(425, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > ' ' && \
|
||||
s->lookahead < '+') && (s->lookahead > ';' && s->lookahead \
|
||||
< '?')))
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(aux_sym__simple_variable_name_token1, \
|
||||
lexer, s);
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(213, lexer, s));
|
||||
if (s->lookahead == 's')
|
||||
return (lex_advance(423, lexer, s));
|
||||
if (((s->lookahead >= '0' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
s->lookahead == '_' || (s->lookahead >= 'a' && \
|
||||
s->lookahead <= 'z')))
|
||||
return (lex_advance(427, 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_s426(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map426(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(426, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > ' ' && \
|
||||
s->lookahead < '+') && (s->lookahead > ';' && s->lookahead \
|
||||
< '?')))
|
||||
return (lex_advance(958, lexer, s));
|
||||
lex_accept_token(aux_sym__simple_variable_name_token1, \
|
||||
lexer, s);
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(213, lexer, s));
|
||||
if ((s->lookahead >= '0' && s->lookahead <= '9'))
|
||||
return (lex_advance(388, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
s->lookahead == '_' || (s->lookahead >= 'a' && \
|
||||
s->lookahead <= 'z')))
|
||||
return (lex_advance(427, 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_s427(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map427(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(427, lexer, s));
|
||||
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
|
||||
lex_accept_token(aux_sym__simple_variable_name_token1, \
|
||||
lexer, s);
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(213, lexer, s));
|
||||
if (((s->lookahead >= '0' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(879, lexer, s));
|
||||
s->lookahead == '_' || (s->lookahead >= 'a' && \
|
||||
s->lookahead <= 'z')))
|
||||
return (lex_advance(427, 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_s428(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map428(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(428, lexer, s));
|
||||
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
|
||||
lex_accept_token(aux_sym__simple_variable_name_token1, \
|
||||
lexer, s);
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(12, lexer, s));
|
||||
if (s->lookahead == 'a')
|
||||
return (lex_advance(429, lexer, s));
|
||||
if (((s->lookahead >= '0' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(879, lexer, s));
|
||||
s->lookahead == '_' || (s->lookahead >= 'b' && \
|
||||
s->lookahead <= 'z')))
|
||||
return (lex_advance(432, 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_s429(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map429(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(429, lexer, s));
|
||||
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
|
||||
lex_accept_token(aux_sym__simple_variable_name_token1, \
|
||||
lexer, s);
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(12, lexer, s));
|
||||
if (s->lookahead == 'c')
|
||||
return (lex_advance(230, lexer, s));
|
||||
if (((s->lookahead >= '0' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(879, lexer, s));
|
||||
s->lookahead == '_' || (s->lookahead >= 'a' && \
|
||||
s->lookahead <= 'z')))
|
||||
return (lex_advance(432, 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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue