changed grammar

This commit is contained in:
Maieul BOYER 2024-07-01 18:36:14 +02:00
parent 0b5b5e4d7e
commit e5b22489e1
No known key found for this signature in database
1219 changed files with 96283 additions and 113028 deletions

View file

@ -14,40 +14,80 @@
bool lex_normal_s400(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(aux_sym_expansion_regex_token1, lexer, s);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
lex_accept_token(sym_comment, lexer, s);
if ((s->lookahead != 0 && s->lookahead != '\n'))
return (lex_advance(400, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s401(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_DOLLAR_LPAREN, lexer, s);
lex_accept_token(sym__comment_word, lexer, s);
if (s->lookahead == '\\')
return (lex_advance(398, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(401, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s402(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_DOLLAR_LPAREN, lexer, s);
if (s->lookahead == '(')
return (lex_advance(312, 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(403, 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(405, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(488, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s403(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_BQUOTE, 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 == 'c')
return (lex_advance(246, 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(405, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(488, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s404(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_BQUOTE, lexer, s);
if (s->lookahead == '`')
return (lex_advance(364, lexer, s));
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_advance(206, 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(402, 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(405, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(488, lexer, s));
return (lex_end_state(lexer, s));
}