Skip to content

tangibl/tangibl-wasm-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tangibl WASM

build npm

This package provides a WASM interface for the tangibl-rs package.

Getting started

Simply use the package as follows:

import { parse } from "tangibl-wasm";

const ast = parse(topcodes);

if (ast) {
    console.log(ast.name);
}

As for how to obtain the TopCodes, see the TopCodes WASM package.

Development

Build with the following:

wasm-pack build

Test in a headless browser:

wasm-pack test --headless --firefox

Integration

If you would like to test the integration of your changes, you can use the NPM project under www/.

This example is hosted on GitHub pages.