Updated syntax with a simpler one

This commit is contained in:
Maieul BOYER 2024-06-06 19:43:58 +02:00
parent 38fa2d2e84
commit aeb576024f
No known key found for this signature in database
4465 changed files with 195554 additions and 526060 deletions

View file

@ -14,78 +14,36 @@
bool lex_normal_s245(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map245(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(245, 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(anon_sym_AMP_AMP, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s246(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map246(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(246, lexer, s));
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
(s->lookahead >= 'a' && s->lookahead <= 'z')))
return (lex_advance(879, lexer, s));
lex_accept_token(anon_sym_PIPE_PIPE, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s247(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map247(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(247, lexer, s));
if ((s->lookahead >= '1' && s->lookahead <= '9'))
return (lex_advance(807, lexer, s));
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
(s->lookahead >= 'a' && s->lookahead <= 'z')))
return (lex_advance(873, lexer, s));
if ((s->lookahead != 0 && (s->lookahead > '&' && \
s->lookahead < '*')))
return (lex_advance(958, lexer, s));
lex_accept_token(anon_sym_BANG, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s248(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map248(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(248, lexer, s));
if ((s->lookahead >= '1' && s->lookahead <= '9'))
return (lex_advance(806, lexer, s));
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
(s->lookahead >= '_' && s->lookahead <= 'z')))
return (lex_advance(868, lexer, s));
if ((s->lookahead != 0 && (s->lookahead > '&' && \
s->lookahead < ')')))
return (lex_advance(958, lexer, s));
lex_accept_token(anon_sym_BANG, lexer, s);
if (s->lookahead == '\\')
return (lex_advance(213, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 12, \
s->lookahead)))
return (lex_advance(482, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s249(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map249(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(249, lexer, s));
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
(s->lookahead >= 'a' && s->lookahead <= 'z')))
return (lex_advance(879, lexer, s));
lex_accept_token(anon_sym_EQ, lexer, s);
return (lex_end_state(lexer, s));
}