Started working on ast

This commit is contained in:
Maieul BOYER 2024-06-11 16:08:12 +02:00
parent 9aee1f2272
commit 1d4dc219db
No known key found for this signature in database
1344 changed files with 118659 additions and 107610 deletions

View file

@ -5,6 +5,8 @@
#include <string.h>
#include <wctype.h>
typedef t_lexer_data TSLexer;
enum TokenType
{
HEREDOC_START,
@ -59,7 +61,6 @@ enum TokenType
// ESAC,
// ERROR_RECOVERY,
// };
typedef struct s_lexer_data TSLexer;
typedef Array(char) String;
@ -727,6 +728,7 @@ static bool scan(Scanner *scanner, TSLexer *lexer, const bool *valid_symbols)
return true;
}
//regex:
if ((valid_symbols[REGEX]) && !in_error_recovery(valid_symbols))
{
if (valid_symbols[REGEX])