Changed Grammar
This commit is contained in:
parent
b0da66b7d8
commit
fbb9977f4a
2132 changed files with 110314 additions and 233488 deletions
|
|
@ -14,92 +14,45 @@
|
|||
|
||||
bool lex_normal_s215(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->eof)
|
||||
return (lex_advance(223, lexer, s));
|
||||
if (lex_normal_map215(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(215, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(389, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(432, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < '*')))
|
||||
return (lex_advance(482, lexer, s));
|
||||
if (s->lookahead == '\'')
|
||||
return (lex_advance(402, lexer, s));
|
||||
if (s->lookahead != 0)
|
||||
return (lex_advance(215, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s216(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->eof)
|
||||
return (lex_advance(223, lexer, s));
|
||||
if (lex_normal_map216(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(216, lexer, s));
|
||||
if (((s->lookahead >= '1' && s->lookahead <= '9') || \
|
||||
(s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= 'a' && s->lookahead <= 'z')))
|
||||
return (lex_advance(438, lexer, s));
|
||||
if (s->lookahead == '(')
|
||||
return (lex_advance(430, lexer, s));
|
||||
if (s->lookahead == '{')
|
||||
return (lex_advance(414, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s217(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->eof)
|
||||
return (lex_advance(223, lexer, s));
|
||||
if (lex_normal_map217(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(217, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(388, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= '_' && s->lookahead <= 'z')))
|
||||
return (lex_advance(427, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')')))
|
||||
return (lex_advance(482, lexer, s));
|
||||
if (s->lookahead == ')')
|
||||
return (lex_advance(335, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s218(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->eof)
|
||||
return (lex_advance(223, lexer, s));
|
||||
if (lex_normal_map218(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(218, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(387, lexer, s));
|
||||
if (s->lookahead != 0)
|
||||
return (lex_advance(482, lexer, s));
|
||||
if (s->lookahead == '+')
|
||||
return (lex_advance(425, lexer, s));
|
||||
if (s->lookahead == '-')
|
||||
return (lex_advance(415, lexer, s));
|
||||
if (s->lookahead == '=')
|
||||
return (lex_advance(417, lexer, s));
|
||||
if (s->lookahead == '?')
|
||||
return (lex_advance(421, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
||||
bool lex_normal_s219(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->eof)
|
||||
return (lex_advance(223, lexer, s));
|
||||
if (lex_normal_map219(lexer, s))
|
||||
return (true);
|
||||
if (((s->lookahead >= '\t' && s->lookahead <= '\r') || \
|
||||
s->lookahead == ' '))
|
||||
return (lex_skip(219, lexer, s));
|
||||
if ((s->lookahead >= '1' && s->lookahead <= '9'))
|
||||
return (lex_advance(388, lexer, s));
|
||||
if (((s->lookahead >= 'A' && s->lookahead <= 'Z') || \
|
||||
(s->lookahead >= '_' && s->lookahead <= 'z')))
|
||||
return (lex_advance(427, lexer, s));
|
||||
if ((s->lookahead != 0 && (s->lookahead > '&' && \
|
||||
s->lookahead < ')')))
|
||||
return (lex_advance(482, lexer, s));
|
||||
if (s->lookahead == ';')
|
||||
return (lex_advance(275, lexer, s));
|
||||
return (lex_end_state(lexer, s));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue