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,34 +14,32 @@
bool lex_normal_s360(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_EQ_EQ, lexer, s);
lex_accept_token(anon_sym_PLUS2, lexer, s);
if (s->lookahead == '+')
return (lex_advance(355, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s361(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_BANG_EQ, lexer, s);
lex_accept_token(anon_sym_TILDE, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s362(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_LT_EQ, lexer, s);
lex_accept_token(anon_sym_PLUS_PLUS2, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s363(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_GT_EQ, lexer, s);
lex_accept_token(anon_sym_DASH_DASH2, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s364(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_PLUS, lexer, s);
if (s->lookahead == '+')
return (lex_advance(389, lexer, s));
if (s->lookahead == '=')
return (lex_advance(340, lexer, s));
lex_accept_token(aux_sym_concatenation_token1, lexer, s);
return (lex_end_state(lexer, s));
}