2022-01-03 10:57:01 -08:00
|
|
|
#ifndef TREE_SITTER_WASM_H_
|
|
|
|
|
#define TREE_SITTER_WASM_H_
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-09-06 22:41:05 -07:00
|
|
|
#include "tree_sitter/api.h"
|
|
|
|
|
#include "tree_sitter/parser.h"
|
2022-01-03 10:57:01 -08:00
|
|
|
|
2022-09-06 22:41:05 -07:00
|
|
|
bool ts_wasm_store_start(TSWasmStore *self, TSLexer *lexer, const TSLanguage *language);
|
2022-01-03 10:57:01 -08:00
|
|
|
void ts_wasm_store_stop(TSWasmStore *self);
|
2022-09-06 22:41:05 -07:00
|
|
|
bool ts_wasm_store_run_main_lex_function(TSWasmStore *self, TSStateId state);
|
|
|
|
|
bool ts_wasm_store_run_keyword_lex_function(TSWasmStore *self, TSStateId state);
|
2022-01-03 10:57:01 -08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif // TREE_SITTER_WASM_H_
|