Started working on ast

This commit is contained in:
Maieul BOYER 2024-06-11 16:08:12 +02:00
parent 9aee1f2272
commit 1d4dc219db
No known key found for this signature in database
1344 changed files with 118659 additions and 107610 deletions

View file

@ -14,34 +14,34 @@
bool lex_normal_s385(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_PLUS_PLUS2, lexer, s);
lex_accept_token(anon_sym_DASH2, lexer, s);
if (s->lookahead == '-')
return (lex_advance(383, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s386(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_DASH_DASH2, lexer, s);
lex_accept_token(anon_sym_PLUS2, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s387(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(aux_sym_concatenation_token1, lexer, s);
lex_accept_token(anon_sym_PLUS2, lexer, s);
if (s->lookahead == '+')
return (lex_advance(382, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s388(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_DOLLAR, lexer, s);
lex_accept_token(anon_sym_TILDE, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s389(t_lexer *lexer, t_lexer_state *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));
lex_accept_token(anon_sym_PLUS_PLUS2, lexer, s);
return (lex_end_state(lexer, s));
}