Updated syntax with a simpler one
This commit is contained in:
parent
38fa2d2e84
commit
aeb576024f
4465 changed files with 195554 additions and 526060 deletions
|
|
@ -14,77 +14,55 @@
|
|||
|
||||
bool lex_normal_s295(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map295(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(295, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')')))
|
||||
return (lex_advance(958, 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(57, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s296(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map296(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(296, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if (s->lookahead != 0)
|
||||
return (lex_advance(958, 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(142, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s297(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map297(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(297, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')') && (s->lookahead > '{' && s->lookahead \
|
||||
< '}')))
|
||||
return (lex_advance(958, 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(63, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s298(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map298(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(298, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')') && s->lookahead != ';' && s->lookahead \
|
||||
!= '<'))
|
||||
return (lex_advance(958, 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(143, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s299(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (lex_normal_map299(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(299, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(805, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')') && (s->lookahead > '{' && s->lookahead \
|
||||
< '}')))
|
||||
return (lex_advance(958, 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(144, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue