pocketlang/docs/wasm
Thakee Nathees 87fe3b01d6 runFunction() abstraction to hide fiber creation
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).
2022-04-27 08:46:00 +05:30
..
compile.py Merge pull request #180 from ThakeeNathees/minor-changes 2022-04-06 11:26:32 +05:30
io_api.js error pretty print (print lines) implemented 2022-04-22 17:51:17 +05:30
main.c runFunction() abstraction to hide fiber creation 2022-04-27 08:46:00 +05:30
README.md docs were fully refactored (#175) 2022-04-04 08:47:15 +05:30

To compile pocketlang to wasm:

  1. Download and install emscripten using the guide from. https://emscripten.org/docs/getting_started/downloads.html

  2. Add 'emsdk/' directory to the environment, this will need to call the emsdk_env from anywhere.

  3. Run command call emsdk_env.bat to initialize the emsdk env on windows, for other platform see emscripten docs.

  4. Run 'python compile.py' to run compile.