1#ifndef TREE_SITTER_WASM_H_
 2#define TREE_SITTER_WASM_H_
 3
 4#ifdef __cplusplus
 5extern "C" {
 6#endif
 7
 8#include "api.h"
 9#include "./parser.h"
10
11bool ts_wasm_store_start(TSWasmStore *, TSLexer *, const TSLanguage *);
12void ts_wasm_store_reset(TSWasmStore *);
13bool ts_wasm_store_has_error(const TSWasmStore *);
14
15bool ts_wasm_store_call_lex_main(TSWasmStore *, TSStateId);
16bool ts_wasm_store_call_lex_keyword(TSWasmStore *, TSStateId);
17
18uint32_t ts_wasm_store_call_scanner_create(TSWasmStore *);
19void ts_wasm_store_call_scanner_destroy(TSWasmStore *, uint32_t);
20bool ts_wasm_store_call_scanner_scan(TSWasmStore *, uint32_t, uint32_t);
21uint32_t ts_wasm_store_call_scanner_serialize(TSWasmStore *, uint32_t, char *);
22void ts_wasm_store_call_scanner_deserialize(TSWasmStore *, uint32_t, const char *, unsigned);
23
24void ts_wasm_language_retain(const TSLanguage *);
25void ts_wasm_language_release(const TSLanguage *);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif  // TREE_SITTER_WASM_H_