Skip to main content

Crate tishlang_compiler_wasm

Crate tishlang_compiler_wasm 

Source
Expand description

Tish compiler exposed to JS via wasm-bindgen. Compiles single source string → bytecode (base64) or JS. Used by playground, REPL, try-it pages.

compile_to_js / compile_to_js_with_imports use Lattish-style JSX lowering. Prepend a compiled Lattish.tish runtime (same as playground lattish-runtime.js) so the iframe/script scope has hooks and the JSX helpers; source files do not need to import the JSX helper by name.

Functions§

compile_to_bytecode
compile_to_bytecode_with_imports
compile_to_js
compile_to_js_with_imports