mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-03-04 05:05:57 +08:00
![]() - 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. |
||
---|---|---|
.. | ||
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.