pocketlang/docs/wasm
Thakee Nathees 6a22653263 Minor code enhancements (read bellow)
- Warnings were fixed
- Libraries are registered internally when PKVM created
  and cleanedup when PKVM freed (if PK_NO_LIBS not defined)
- Lang.clock() moved to time module and sleep, epoch time
  were added.
- Support both upper case and lower case hex literals
- Support hex excaped characters inside strings (ex: "\x41")
- Native api for import modules added `pkImportModule(...)`
- pkAllocString, pkDeallocString are changed to pkRealloc.
- NewInstance, DeleteInstance functions now take PKVM however
  delete function should not allocate any memory since it's
  invoked at the GC execution.
2022-05-21 04:15:30 +05:30
..
compile.py Minor code enhancements (read bellow) 2022-05-21 04:15:30 +05:30
io_api.js error pretty print (print lines) implemented 2022-04-22 17:51:17 +05:30
main.c try online page added to docs 2022-05-19 00:13:53 +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.