Use graph-structured parse stack in parser

Not using the splitting feature yet.
This commit is contained in:
Max Brunsfeld 2015-06-18 15:04:03 -07:00
parent aaaa1c8a5d
commit 442db56b92
5 changed files with 123 additions and 74 deletions

View file

@ -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;