Restucture wasm module, return a normal TSLanguage from load_language
This commit is contained in:
parent
3f1a7f9cd4
commit
042e6f9d57
26 changed files with 3068 additions and 317 deletions
|
|
@ -943,23 +943,24 @@ uint32_t ts_language_version(const TSLanguage *);
|
|||
|
||||
typedef struct wasm_engine_t TSWasmEngine;
|
||||
typedef struct TSWasmStore TSWasmStore;
|
||||
typedef struct TSWasmLanguage TSWasmLanguage;
|
||||
|
||||
TSWasmStore *ts_wasm_store_new(TSWasmEngine *engine);
|
||||
void ts_wasm_store_delete(TSWasmStore *);
|
||||
void ts_wasm_language_delete(const TSWasmLanguage *);
|
||||
|
||||
TSWasmLanguage *ts_wasm_store_load_language(
|
||||
void ts_wasm_store_delete(TSWasmStore *);
|
||||
|
||||
const TSLanguage *ts_wasm_store_load_language(
|
||||
TSWasmStore *,
|
||||
const char *name,
|
||||
const char *wasm,
|
||||
uint32_t wasm_len
|
||||
);
|
||||
void ts_wasm_store_add_language(TSWasmStore *, const TSWasmLanguage *);
|
||||
void ts_parser_set_wasm_language(TSParser *, const TSWasmLanguage *);
|
||||
const TSWasmLanguage *ts_parser_wasm_language(TSParser *);
|
||||
|
||||
bool ts_language_is_wasm(const TSLanguage *);
|
||||
|
||||
void ts_parser_set_wasm_store(TSParser *, TSWasmStore *);
|
||||
|
||||
TSWasmStore *ts_parser_wasm_store(TSParser *);
|
||||
|
||||
/**********************************/
|
||||
/* Section - Global Configuration */
|
||||
/**********************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue