Updated Grammar

This commit is contained in:
Maieul BOYER 2024-07-01 12:57:51 +02:00
parent 74d642f297
commit 175efe0f2f
No known key found for this signature in database
1246 changed files with 109558 additions and 114993 deletions

View file

@ -14,36 +14,92 @@
bool lex_normal_s410(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_POUND, lexer, s);
lex_accept_token(aux_sym__simple_variable_name_token1, \
lexer, s);
if (s->lookahead == '\\')
return (lex_advance(16, lexer, s));
if (s->lookahead == 'a')
return (lex_advance(411, lexer, s));
if (((s->lookahead >= '0' && s->lookahead <= '9') || \
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
s->lookahead == '_' || (s->lookahead >= 'b' && \
s->lookahead <= 'z')))
return (lex_advance(413, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(497, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s411(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_POUND, lexer, s);
lex_accept_token(aux_sym__simple_variable_name_token1, \
lexer, s);
if (s->lookahead == '\\')
return (lex_advance(434, lexer, s));
return (lex_advance(16, lexer, s));
if (s->lookahead == 'c')
return (lex_advance(249, 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(413, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(529, lexer, s));
return (lex_advance(497, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s412(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_DOLLAR_LBRACE, lexer, s);
lex_accept_token(aux_sym__simple_variable_name_token1, \
lexer, s);
if (s->lookahead == '\\')
return (lex_advance(16, lexer, s));
if (s->lookahead == 's')
return (lex_advance(410, 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(413, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(497, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s413(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_COLON_DASH, lexer, s);
lex_accept_token(aux_sym__simple_variable_name_token1, \
lexer, s);
if (s->lookahead == '\\')
return (lex_advance(16, 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(413, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(497, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s414(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_DASH3, lexer, s);
lex_accept_token(aux_sym__simple_variable_name_token1, \
lexer, s);
if (s->lookahead == 'a')
return (lex_advance(415, lexer, s));
if (((s->lookahead >= '0' && s->lookahead <= '9') || \
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
s->lookahead == '_' || (s->lookahead >= 'b' && \
s->lookahead <= 'z')))
return (lex_advance(418, lexer, s));
return (lex_end_state(lexer, s));
}