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,62 +14,56 @@
bool lex_normal_s405(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(sym_string_content, lexer, s);
if (s->lookahead == '\\')
return (lex_advance(432, lexer, s));
if ((s->lookahead != 0 && s->lookahead != '\n' && \
s->lookahead != '\r' && s->lookahead != '"' && \
s->lookahead != '$' && s->lookahead != '`'))
return (lex_advance(405, lexer, s));
lex_accept_token(sym_comment, lexer, s);
if (s->lookahead == '\n')
return (lex_advance(376, lexer, s));
if (s->lookahead == '\r')
return (lex_advance(370, lexer, s));
if (s->lookahead != 0)
return (lex_advance(378, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s406(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(sym_raw_string, lexer, s);
lex_accept_token(sym_comment, lexer, s);
if ((s->lookahead == '\t' || (s->lookahead >= 0x0b && \
s->lookahead <= '\r')))
return (lex_advance(408, lexer, s));
if ((s->lookahead != 0 && (s->lookahead > '\t' && \
s->lookahead < '\r')))
return (lex_advance(409, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s407(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(sym_number, lexer, s);
if (s->lookahead == '\\')
return (lex_advance(238, lexer, s));
if ((s->lookahead >= '0' && s->lookahead <= '9'))
return (lex_advance(407, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(528, lexer, s));
lex_accept_token(sym_comment, lexer, s);
if ((s->lookahead == '\t' || (s->lookahead >= 0x0b && \
s->lookahead <= '\r')))
return (lex_advance(408, lexer, s));
if ((s->lookahead != 0 && (s->lookahead > '\t' && \
s->lookahead < '\r')))
return (lex_advance(498, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s408(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(sym_number, lexer, s);
if (s->lookahead == '\\')
return (lex_advance(16, lexer, s));
if ((s->lookahead >= '0' && s->lookahead <= '9'))
lex_accept_token(sym_comment, lexer, s);
if ((s->lookahead != 0 && s->lookahead != '\n'))
return (lex_advance(408, lexer, s));
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
s->lookahead == '_' || (s->lookahead >= 'a' && \
s->lookahead <= 'z')))
return (lex_advance(440, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(528, lexer, s));
return (lex_end_state(lexer, s));
}
bool lex_normal_s409(t_lexer *lexer, t_lexer_state *s)
{
lex_accept_token(sym_number, lexer, s);
if ((s->lookahead >= '0' && s->lookahead <= '9'))
lex_accept_token(sym__comment_word, lexer, s);
if (s->lookahead == '\\')
return (lex_advance(406, lexer, s));
if ((!s->eof && \
set_contains(sym__comment_word_character_set_1(), 10, \
s->lookahead)))
return (lex_advance(409, lexer, s));
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
s->lookahead == '_' || (s->lookahead >= 'a' && \
s->lookahead <= 'z')))
return (lex_advance(445, lexer, s));
return (lex_end_state(lexer, s));
}