Started from buttom go to the sky
This commit is contained in:
parent
96215449bd
commit
f811e55dea
4781 changed files with 10121 additions and 1743 deletions
58
parser/static/lex_funcs/lex_normal/state_helper.c
Normal file
58
parser/static/lex_funcs/lex_normal/state_helper.c
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* state_helper.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/28 18:39:26 by rparodi #+# #+# */
|
||||
/* Updated: 2024/04/28 19:10:20 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "./lex_normal_funcs.h"
|
||||
|
||||
bool lex_helper_s519(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->lookahead == '<')
|
||||
return (lex_advance(612, lexer, s));
|
||||
if (s->lookahead == '>')
|
||||
return (lex_advance(618, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_skip(542, lexer, s));
|
||||
if (s->lookahead == '`')
|
||||
return (lex_advance(856, lexer, s));
|
||||
if (s->lookahead == '|')
|
||||
return (lex_advance(593, lexer, s));
|
||||
return (false);
|
||||
}
|
||||
|
||||
bool lex_helper_s520(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->lookahead == '<')
|
||||
return (lex_advance(612, lexer, s));
|
||||
if (s->lookahead == '>')
|
||||
return (lex_advance(618, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_skip(544, lexer, s));
|
||||
if (s->lookahead == '`')
|
||||
return (lex_advance(855, lexer, s));
|
||||
if (s->lookahead == '|')
|
||||
return (lex_advance(593, lexer, s));
|
||||
return (false);
|
||||
}
|
||||
|
||||
bool lex_helper_s521(t_lexer *lexer, t_lexer_state *s)
|
||||
{
|
||||
if (s->lookahead == '<')
|
||||
return (lex_advance(613, lexer, s));
|
||||
if (s->lookahead == '>')
|
||||
return (lex_advance(618, lexer, s));
|
||||
if (s->lookahead == '\\')
|
||||
return (lex_skip(541, lexer, s));
|
||||
if (s->lookahead == '`')
|
||||
return (lex_advance(856, lexer, s));
|
||||
if (s->lookahead == '|')
|
||||
return (lex_advance(593, lexer, s));
|
||||
return (false);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue