Changed Grammar
This commit is contained in:
parent
b0da66b7d8
commit
fbb9977f4a
2132 changed files with 110314 additions and 233488 deletions
|
|
@ -14,91 +14,34 @@
|
|||
|
||||
bool lex_normal_s385(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(aux_sym_number_token1, lexer, s);
|
||||
if (s->lookahead == '#')
|
||||
return (lex_advance(394, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(213, lexer, s));
|
||||
if (s->lookahead == 'x')
|
||||
return (lex_advance(481, lexer, s));
|
||||
if ((s->lookahead >= '0' && s->lookahead <= '9'))
|
||||
return (lex_advance(387, lexer, s));
|
||||
if ((!s->eof && set_contains(sym_word_character_set_1(), \
|
||||
11, s->lookahead)))
|
||||
return (lex_advance(482, lexer, s));
|
||||
lex_accept_token(anon_sym_PLUS_PLUS2, lexer, s);
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s386(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(aux_sym_number_token1, lexer, s);
|
||||
if (s->lookahead == '#')
|
||||
return (lex_advance(394, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(213, lexer, s));
|
||||
if (s->lookahead == 'x')
|
||||
return (lex_advance(426, 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_word_character_set_1(), \
|
||||
11, s->lookahead)))
|
||||
return (lex_advance(482, lexer, s));
|
||||
lex_accept_token(anon_sym_DASH_DASH2, lexer, s);
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s387(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(aux_sym_number_token1, lexer, s);
|
||||
if (s->lookahead == '#')
|
||||
return (lex_advance(394, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(213, lexer, s));
|
||||
if ((s->lookahead >= '0' && s->lookahead <= '9'))
|
||||
return (lex_advance(387, lexer, s));
|
||||
if ((!s->eof && set_contains(sym_word_character_set_1(), \
|
||||
11, s->lookahead)))
|
||||
return (lex_advance(482, lexer, s));
|
||||
lex_accept_token(aux_sym_concatenation_token1, lexer, s);
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s388(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(aux_sym_number_token1, lexer, s);
|
||||
if (s->lookahead == '#')
|
||||
return (lex_advance(394, 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_word_character_set_1(), \
|
||||
11, s->lookahead)))
|
||||
return (lex_advance(482, lexer, s));
|
||||
lex_accept_token(anon_sym_DOLLAR, lexer, s);
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s389(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(aux_sym_number_token1, lexer, s);
|
||||
if (s->lookahead == '#')
|
||||
return (lex_advance(394, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(12, lexer, s));
|
||||
if ((s->lookahead >= '0' && s->lookahead <= '9'))
|
||||
return (lex_advance(389, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
s->lookahead == '_' || (s->lookahead >= 'a' && \
|
||||
s->lookahead <= 'z')))
|
||||
return (lex_advance(432, lexer, s));
|
||||
if ((!s->eof && set_contains(sym_word_character_set_1(), \
|
||||
11, s->lookahead)))
|
||||
return (lex_advance(482, lexer, s));
|
||||
lex_accept_token(anon_sym_DOLLAR, lexer, s);
|
||||
if (s->lookahead == '(')
|
||||
return (lex_advance(431, lexer, s));
|
||||
if (s->lookahead == '{')
|
||||
return (lex_advance(414, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue