tree-sitter/src/runtime/lexer.h
Max Brunsfeld c96c4a08e6 Use an object pool for stack nodes, to reduce allocations
Also, fix some leaks in the case where memory allocation failed during parsing
2016-02-04 11:19:42 -08:00

18 lines
300 B
C

#ifndef RUNTIME_LEXER_H_
#define RUNTIME_LEXER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "tree_sitter/parser.h"
void ts_lexer_init(TSLexer *);
void ts_lexer_set_input(TSLexer *, TSInput);
void ts_lexer_reset(TSLexer *, TSLength);
#ifdef __cplusplus
}
#endif
#endif // RUNTIME_LEXER_H_