Allow callbacks to be specified for debug output
This commit is contained in:
parent
71cc7a2dc2
commit
c594208ab8
9 changed files with 226 additions and 69 deletions
|
|
@ -69,7 +69,7 @@ static TSTree *accept(TSLexer *lexer, TSSymbol symbol, int is_hidden) {
|
|||
TSLexer ts_lexer_make() {
|
||||
TSLexer result = (TSLexer) { .advance_fn = advance,
|
||||
.accept_fn = accept,
|
||||
.debug = 0,
|
||||
.debugger = {},
|
||||
.chunk = NULL,
|
||||
.chunk_start = 0,
|
||||
.chunk_size = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue