mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
d431dd7975
also support ansi color to highlight the error token. |
||
---|---|---|
.. | ||
compile.py | ||
io_api.js | ||
main.c | ||
README.md |
To compile pocketlang to wasm:
-
Download and install emscripten using the guide from. https://emscripten.org/docs/getting_started/downloads.html
-
Add 'emsdk/' directory to the environment, this will need to call the emsdk_env from anywhere.
-
Run command
call emsdk_env.bat
to initialize the emsdk env on windows, for other platform see emscripten docs. -
Run 'python compile.py' to run compile.