Allow different parse stack heads to lex differently
This commit is contained in:
parent
484721b0c2
commit
64874449e4
4 changed files with 152 additions and 76 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue