Started working on ast
This commit is contained in:
parent
9aee1f2272
commit
1d4dc219db
1344 changed files with 118659 additions and 107610 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue