Make vector struct type-safe
This commit is contained in:
parent
3f08bfb264
commit
6fa7eca966
6 changed files with 223 additions and 246 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue