Allow different parse stack heads to lex differently

This commit is contained in:
Max Brunsfeld 2015-11-18 08:47:15 -08:00
parent 484721b0c2
commit 64874449e4
4 changed files with 152 additions and 76 deletions

View file

@ -6,14 +6,14 @@ extern "C" {
#endif
#include "runtime/stack.h"
#include "runtime/vector.h"
typedef struct {
TSLexer lexer;
Stack *stack;
TSTree *lookahead;
TSTree *reusable_subtree;
size_t reusable_subtree_pos;
const TSLanguage *language;
Vector head_states;
} TSParser;
TSParser ts_parser_make();