Debian Codegraph @

Xtree-house/bindings/vendor/src/wasm_store.h

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