Add iteration over names

This commit is contained in:
Daumantas Kavolis 2023-06-15 17:25:08 +03:00
parent 1f52f2f1dc
commit 672d38803e
4 changed files with 51 additions and 2 deletions

View file

@ -1107,6 +1107,12 @@ bool ts_lookahead_iterator_advance(TSLookaheadIterator *);
*/
TSSymbol ts_lookahead_iterator_current_symbol(const TSLookaheadIterator *);
/**
* Get the current symbol type of the lookahead iterator as a null terminated
* string.
*/
const char *ts_lookahead_iterator_current_symbol_name(const TSLookaheadIterator *);
/**********************************/
/* Section - Global Configuration */
/**********************************/