started to rename struct and stuff
This commit is contained in:
parent
ff4b0c471f
commit
54cefca53f
25 changed files with 2413 additions and 2431 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -1,18 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* parser_raw_types.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/24 17:44:47 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/04/24 17:44:48 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PARSER_RAW_TYPES_H
|
||||
#define PARSER_RAW_TYPES_H
|
||||
|
||||
|
||||
|
||||
#endif /* PARSER_RAW_TYPES_H */
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/29 14:45:45 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/04/29 14:46:48 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/04/29 16:24:16 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -18,11 +18,11 @@
|
|||
|
||||
typedef struct s_lexer
|
||||
{
|
||||
t_u32 lookahead;
|
||||
t_i32 lookahead;
|
||||
t_symbol result_symbol;
|
||||
void (*advance)(struct s_lexer *, bool);
|
||||
void (*mark_end)(struct s_lexer *);
|
||||
t_u32 (*get_column)(struct s_lexer *);
|
||||
t_i32 (*get_column)(struct s_lexer *);
|
||||
bool (*is_at_included_range_start)(const struct s_lexer *);
|
||||
bool (*eof)(const struct s_lexer *);
|
||||
} t_lexer;
|
||||
|
|
|
|||
|
|
@ -6,15 +6,18 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/29 14:43:33 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/04/29 14:44:50 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/04/29 16:41:28 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef TYPES_SYMBOL_H
|
||||
# define TYPES_SYMBOL_H
|
||||
#define TYPES_SYMBOL_H
|
||||
|
||||
# include "me/types.h"
|
||||
#include "me/types.h"
|
||||
|
||||
typedef t_u16 t_symbol;
|
||||
typedef t_u16 t_symbol;
|
||||
|
||||
#define ts_builtin_sym_end (t_symbol)0
|
||||
#define ts_builtin_sym_error (t_symbol)(-1)
|
||||
|
||||
#endif /* TYPES_SYMBOL_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue