mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-05 20:26:53 +08:00
![]() the function will create a fiber and execute the function, this is a better abstracion for the host applicaion (createFiber, runFiber are removed) and this will come in handy when it comes to execute pocket functions inside a native function (it's required to implement operator overloading). |
||
---|---|---|
.. | ||
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.