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,30 @@
bool lex_normal_s240(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map240(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(240, 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_SEMI_AMP, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s241(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map241(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(241, 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_SEMI_SEMI_AMP, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s242(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map242(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(242, 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(anon_sym_LBRACE, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s243(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map243(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(243, 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_RBRACE, lexer, s);
return (lex_end_state(lexer, s));
}
bool lex_normal_s244(t_lexer *lexer, t_lexer_state *s)
{
if (lex_normal_map244(lexer, s))
return (true);
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
s->lookahead == ' '))
return (lex_skip(244, 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)
return (lex_advance(958, lexer, s));
lex_accept_token(anon_sym_PIPE_AMP, lexer, s);
return (lex_end_state(lexer, s));
}