Make vector struct type-safe

This commit is contained in:
Max Brunsfeld 2016-02-17 14:45:00 -08:00
parent 3f08bfb264
commit 6fa7eca966
6 changed files with 223 additions and 246 deletions

View file

@ -8,12 +8,14 @@ extern "C" {
#include "runtime/stack.h"
#include "runtime/vector.h"
typedef struct LookaheadState LookaheadState;
typedef struct {
TSLexer lexer;
Stack *stack;
const TSLanguage *language;
Vector lookahead_states;
Vector reduce_parents;
Vector(LookaheadState) lookahead_states;
Vector(TSTree *) reduce_parents;
TSTree *finished_tree;
bool is_split;
} TSParser;