Balance repetition trees after parsing

This commit is contained in:
Max Brunsfeld 2018-01-29 10:41:07 -08:00
parent 8c29841adf
commit 299a146b66
4 changed files with 84 additions and 9 deletions

View file

@ -50,6 +50,7 @@ typedef struct Tree {
TSSymbol symbol;
TSStateId parse_state;
unsigned error_cost;
unsigned repeat_depth;
struct {
TSSymbol symbol;