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-07 14:40:11 -07:00
|
|
|
bool ts_wasm_store_start(TSWasmStore *, TSLexer *, const TSLanguage *);
|
|
|
|
|
void ts_wasm_store_stop(TSWasmStore *);
|
|
|
|
|
|
|
|
|
|
bool ts_wasm_store_call_lex_main(TSWasmStore *, TSStateId);
|
|
|
|
|
bool ts_wasm_store_call_lex_keyword(TSWasmStore *, TSStateId);
|
|
|
|
|
|
|
|
|
|
uint32_t ts_wasm_store_call_scanner_create(TSWasmStore *);
|
|
|
|
|
void ts_wasm_store_call_scanner_destroy(TSWasmStore *, uint32_t);
|
|
|
|
|
bool ts_wasm_store_call_scanner_scan(TSWasmStore *, uint32_t, uint32_t);
|
|
|
|
|
uint32_t ts_wasm_store_call_scanner_serialize(TSWasmStore *, uint32_t, char *);
|
|
|
|
|
void ts_wasm_store_call_scanner_deserialize(TSWasmStore *, uint32_t, const char *, unsigned);
|
2022-01-03 10:57:01 -08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif // TREE_SITTER_WASM_H_
|