Commit graph

27 commits

Author SHA1 Message Date
Remko Tronçon
0fb992e2cb build: Cleanup 2024-02-23 20:42:05 +01:00
Remko Tronçon
a29e0f9567 notebook: Move some files 2022-11-20 12:56:35 +01:00
Remko Tronçon
3494e15a65 build: Extract watcher 2022-11-20 08:47:27 +01:00
Remko Tronçon
23a5ed58d2 waforthc: Embed wasm-rt files as source 2022-11-12 14:11:59 +01:00
Remko Tronçon
446dbb2051 waforthc: Import 2022-11-11 19:11:19 +01:00
Remko Tronçon
31f1405509 Simplify prompt printing 2022-10-02 20:24:22 +02:00
Remko Tronçon
ebf2e1c674 Fix parsing with process script 2022-10-01 20:09:43 +02:00
Remko Tronçon
db43e9540a Fix lint errors 2022-07-06 19:53:21 +02:00
Remko Tronçon
ccbad85a74 Misc small cleanups & improvements.
NIP, TUCK: Implement directly
CR: Simplify
IF/WHILE: Reduce test by 2 instructions
compileCall->compileExecute
emitICall->compileCall
Inline $setFlag & $hidden
2022-06-02 21:33:41 +02:00
Remko Tronçon
f48dd6b86d build: Pipe wat2wasm directly to esbuild 2022-05-31 20:01:54 +02:00
Remko Tronçon
93813185c5 .(, C", PARSE, PARSE-NAME, PAD 2022-05-30 21:29:23 +02:00
Remko Tronçon
401c701579 Rework processing script 2022-05-28 22:09:41 +02:00
Remko Tronçon
cc284482ea standalone: Initial version using wamr 2022-05-26 08:48:22 +02:00
Remko Tronçon
832c41324b build: Replace forth plugin by text loader 2022-05-12 21:13:04 +02:00
Remko Tronçon
893d093968 Replace BASE,STATE,>IN with Forth variables 2022-05-08 14:31:43 +02:00
Remko Tronçon
a6d71029dc Support calling JS from Forth
Initial attempt at an API.

Resolves: #13
2022-05-05 20:19:39 +02:00
Remko Tronçon
eeb6bf9587 Fix wabt 1.0.27 compatibility 2022-04-25 21:29:23 +02:00
Remko Tronçon
3034869230 compiler: compile push & pop inline (infrastructure) 2022-04-24 12:23:42 +02:00
Remko Tronçon
610006c63e remove tos import in compiled words
This was there in case we wanted to use mutable globals for the TOS.
Since we now use a local TOS, this is no longer useful.
2022-04-23 23:13:17 +02:00
Remko Tronçon
5023ea7b2f thread tos as local through all words
This gives a 20% execution time improvement.
2022-04-23 22:45:55 +02:00
Remko Tronçon
0befe565ab rename module 2022-04-23 11:10:44 +02:00
Remko Tronçon
2f1e0017d4 build: add debug flag for wat2wasm 2022-04-22 08:20:28 +02:00
Remko Tronçon
1606979349 use forth loader for web build 2022-04-17 10:00:15 +02:00
Remko Tronçon
2a7240c043 move wrapper & sieve to src/ 2022-04-15 15:39:59 +02:00
Remko Tronçon
9d94df431f use temporary file for wat2wasm 2022-04-15 15:33:56 +02:00
Remko Tronçon
7e2cf5dad5 move tools to scripts 2022-04-15 15:33:56 +02:00
Remko Tronçon
387f339780 use esbuild for tests 2022-04-14 16:53:57 +02:00