Add an option to immediately halt on syntax error

This commit is contained in:
Max Brunsfeld 2017-05-01 13:04:06 -07:00
parent f594ed2519
commit a98d449d88
7 changed files with 110 additions and 18 deletions

View file

@ -31,7 +31,7 @@ typedef struct {
bool parser_init(Parser *);
void parser_destroy(Parser *);
Tree *parser_parse(Parser *, TSInput, Tree *);
Tree *parser_parse(Parser *, TSInput, Tree *, bool halt_on_error);
void parser_set_language(Parser *, const TSLanguage *);
#ifdef __cplusplus