Don't store lookahead_char field for non-error nodes

This commit is contained in:
Max Brunsfeld 2015-05-24 14:43:54 -07:00
parent fd97b8a237
commit 59fd190695
2 changed files with 34 additions and 17 deletions

View file

@ -19,13 +19,17 @@ typedef enum {
struct TSTree {
TSSymbol symbol;
TSTreeOptions options;
size_t ref_count;
TSLength padding;
TSLength size;
char lookahead_char;
size_t child_count;
size_t visible_child_count;
struct TSTree **children;
union {
struct {
struct TSTree **children;
size_t child_count;
size_t visible_child_count;
};
char lookahead_char;
};
unsigned short int ref_count;
};
typedef struct {