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,44 +14,63 @@
bool lex_normal_s295(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_GT, lexer, s);
if (s->lookahead == '&')
return (lex_advance(302, lexer, s));
if (s->lookahead == '>')
return (lex_advance(297, lexer, s));
if (s->lookahead == '|')
return (lex_advance(303, lexer, s));
lex_accept_token(aux_sym_heredoc_redirect_token1, lexer, \
s);
if (s->lookahead == '\n')
return (lex_advance(295, lexer, s));
if (s->lookahead == '\\')
return (lex_advance(52, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s296(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_GT, lexer, s);
if (s->lookahead == '=')
return (lex_advance(363, lexer, s));
if (s->lookahead == '>')
return (lex_advance(298, lexer, s));
lex_accept_token(aux_sym_heredoc_redirect_token1, lexer, \
s);
if (s->lookahead == '\n')
return (lex_advance(296, lexer, s));
if (s->lookahead == '\\')
return (lex_advance(28, lexer, s));
if ((s->lookahead >= 0x0b && s->lookahead <= '\r'))
return (lex_advance(458, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s297(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_GT_GT, lexer, s);
lex_accept_token(aux_sym_heredoc_redirect_token1, lexer, \
s);
if (s->lookahead == '\n')
return (lex_advance(297, lexer, s));
if (s->lookahead == '\\')
return (lex_advance(142, lexer, s));
if ((s->lookahead >= 0x0b && s->lookahead <= '\r'))
return (lex_advance(459, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s298(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_GT_GT, lexer, s);
if (s->lookahead == '=')
return (lex_advance(349, lexer, s));
lex_accept_token(aux_sym_heredoc_redirect_token1, lexer, \
s);
if (s->lookahead == '\n')
return (lex_advance(298, lexer, s));
if (s->lookahead == '\\')
return (lex_advance(146, lexer, s));
if ((s->lookahead >= 0x0b && s->lookahead <= '\r'))
return (lex_advance(460, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s299(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(anon_sym_AMP_GT, lexer, s);
if (s->lookahead == '>')
return (lex_advance(300, lexer, s));
lex_accept_token(aux_sym_heredoc_redirect_token1, lexer, \
s);
if (s->lookahead == '\n')
return (lex_advance(299, lexer, s));
if (s->lookahead == '\\')
return (lex_advance(25, lexer, s));
if ((s->lookahead >= 0x0b && s->lookahead <= '\r'))
return (lex_advance(461, lexer, s));
return (lex_end_state(lexer, s));
}