Updated Grammar
This commit is contained in:
parent
74d642f297
commit
175efe0f2f
1246 changed files with 109558 additions and 114993 deletions
|
|
@ -14,58 +14,83 @@
|
|||
|
||||
bool lex_normal_s370(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(anon_sym_STAR, lexer, s);
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(342, lexer, s));
|
||||
lex_accept_token(sym_string_content, lexer, s);
|
||||
if (s->lookahead == '\n')
|
||||
return (lex_advance(376, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(405, lexer, s));
|
||||
if ((s->lookahead != 0 && s->lookahead != '\r' && \
|
||||
s->lookahead != '"' && s->lookahead != '$' && s->lookahead \
|
||||
!= '`'))
|
||||
return (lex_advance(378, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s371(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(anon_sym_STAR, lexer, s);
|
||||
lex_accept_token(sym_string_content, lexer, s);
|
||||
if (s->lookahead == '\n')
|
||||
return (lex_advance(374, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(238, lexer, s));
|
||||
if ((!s->eof && \
|
||||
set_contains(sym__comment_word_character_set_1(), 10, \
|
||||
s->lookahead)))
|
||||
return (lex_advance(528, lexer, s));
|
||||
return (lex_advance(120, lexer, s));
|
||||
if ((s->lookahead != 0 && s->lookahead != '\r' && \
|
||||
s->lookahead != '"' && s->lookahead != '$' && s->lookahead \
|
||||
!= '`'))
|
||||
return (lex_advance(376, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s372(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(anon_sym_SLASH, lexer, s);
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(345, lexer, s));
|
||||
lex_accept_token(sym_string_content, lexer, s);
|
||||
if (s->lookahead == '\n')
|
||||
return (lex_advance(375, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(238, lexer, s));
|
||||
if ((!s->eof && \
|
||||
set_contains(sym__comment_word_character_set_1(), 10, \
|
||||
s->lookahead)))
|
||||
return (lex_advance(528, lexer, s));
|
||||
return (lex_advance(120, lexer, s));
|
||||
if ((s->lookahead != 0 && s->lookahead != '\r' && \
|
||||
s->lookahead != '"' && s->lookahead != '$' && s->lookahead \
|
||||
!= '`'))
|
||||
return (lex_advance(376, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s373(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(anon_sym_SLASH, lexer, s);
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(344, lexer, s));
|
||||
lex_accept_token(sym_string_content, lexer, s);
|
||||
if (lex_normal_map373(lexer, s))
|
||||
return (true);
|
||||
if ((s->lookahead == '\n' || s->lookahead == '\r'))
|
||||
return (lex_skip(178, lexer, s));
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\f') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_advance(373, lexer, s));
|
||||
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(418, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '_' && \
|
||||
s->lookahead < 'z')))
|
||||
return (lex_advance(376, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s374(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
lex_accept_token(anon_sym_PERCENT, lexer, s);
|
||||
if (s->lookahead == '%')
|
||||
return (lex_advance(426, lexer, s));
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(347, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_advance(238, 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_string_content, lexer, s);
|
||||
if (lex_normal_map374(lexer, s))
|
||||
return (true);
|
||||
if ((s->lookahead == '\n' || s->lookahead == '\r'))
|
||||
return (lex_skip(182, lexer, s));
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\f') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_advance(374, lexer, s));
|
||||
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(418, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > ' ' && \
|
||||
s->lookahead < '$') && (s->lookahead > '_' && s->lookahead \
|
||||
< 'z')))
|
||||
return (lex_advance(376, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue