Use graph-structured parse stack in parser
Not using the splitting feature yet.
This commit is contained in:
parent
aaaa1c8a5d
commit
442db56b92
5 changed files with 123 additions and 74 deletions
|
|
@ -6,10 +6,11 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include "runtime/stack.h"
|
||||
#include "runtime/parse_stack.h"
|
||||
|
||||
typedef struct {
|
||||
TSLexer lexer;
|
||||
TSStack stack;
|
||||
ParseStack *stack;
|
||||
TSStack right_stack;
|
||||
size_t total_chars;
|
||||
TSTree *lookahead;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue