Commit graph

144 commits

Author SHA1 Message Date
Remko Tronçon
5cbbd733ff web: Add pushString() 2022-05-14 07:40:48 +02:00
Remko Tronçon
3d3092a24e examples: Add fetch example 2022-05-13 22:02:28 +02:00
Remko Tronçon
164d7bee0f web: Expose push/pop on main object 2022-05-13 21:46:55 +02:00
Remko Tronçon
79ab8c8e7f thurtle: Use JSX 2022-05-12 21:10:04 +02:00
Rick Carlino
9e30411d1b Add documentation comment to WAForth#read. 2022-05-12 07:27:46 +02:00
Remko Tronçon
8f37f588c1 thurtle: Fix link 2022-05-10 22:47:10 +02:00
Remko Tronçon
21eb8d7073 build: Set HTML titles in index 2022-05-10 22:45:17 +02:00
Remko Tronçon
b1546ad4a3 Thurtle 2022-05-10 22:41:43 +02:00
Remko Tronçon
01fcb9e2a8 build: Resolve waforth import from examples 2022-05-08 15:32:20 +02:00
Remko Tronçon
893d093968 Replace BASE,STATE,>IN with Forth variables 2022-05-08 14:31:43 +02:00
Remko Tronçon
945cc3bede compiler: Fix compilation of BEGIN+WHILE+WHILE+ELSE combinations 2022-05-07 17:32:00 +02:00
Remko Tronçon
a11c7a10ea Make onEmit log to console by default 2022-05-06 21:47:00 +02:00
Remko Tronçon
f252014644 Documentation 2022-05-05 21:32:00 +02:00
Remko Tronçon
d7b80a49f0 Documentation 2022-05-05 21:15:35 +02:00
Remko Tronçon
f1160105cd Simplify onEmit API 2022-05-05 20:52:18 +02:00
Remko Tronçon
c583565528 build: Fix lint error 2022-05-05 20:45:58 +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
85efb6262e Improve sieve-raw-wasm 2022-05-03 21:38:07 +02:00
Remko Tronçon
0b1c7d2a24 benchmarks: Add C and JS version 2022-05-01 22:52:49 +02:00
Remko Tronçon
63841b65ab sieve-vanilla->sieve-raw-wasm 2022-05-01 20:34:38 +02:00
Remko Tronçon
fffd982121 Remove sieve_direct 2022-05-01 17:09:14 +02:00
Remko Tronçon
f5df37a12f Remove obsolete environment queries 2022-05-01 16:58:33 +02:00
Remko Tronçon
ed469cbef4 <#, #>, #, #S, SIGN, HOLD 2022-05-01 16:56:20 +02:00
Remko Tronçon
ba5bff8a99 ENVIRONMENT? 2022-05-01 11:37:35 +02:00
Remko Tronçon
5d687e8253 >NUMBER 2022-04-30 23:25:23 +02:00
Remko Tronçon
504ae3e93e Fix FM/MOD + Implement SM/REM, UM/MOD. 2022-04-30 23:25:23 +02:00
Remko Tronçon
4d6c3cb34d compiler: Fix behavior of I & J to be compliant with ANS.
Keep loop indexes on the return stack for behavior of I and J.
2022-04-26 22:46:54 +02:00
Remko Tronçon
eeb6bf9587 Fix wabt 1.0.27 compatibility 2022-04-25 21:29:23 +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
da3ad27c43 Revert "make stack grow downward"
Reduces binary, but decreases performance, and only makes things a little bit simpler.
2022-04-22 13:57:48 +02:00
Remko Tronçon
41c6aa5d6f make stack grow downward 2022-04-22 12:15:02 +02:00
Remko Tronçon
6dd4f644f0 tests: use stackValues everywhere 2022-04-22 08:20:28 +02:00
Remko Tronçon
e7cf4909fa shell: display build date 2022-04-18 14:41:52 +02:00
Remko Tronçon
ea97e51644 shell: styling tweaks 2022-04-18 14:20:41 +02:00
Remko Tronçon
48dfdd00aa shell: avoid scroll on space 2022-04-18 14:05:02 +02:00
Remko Tronçon
4fe9471c66 shell: scroll cursor into view 2022-04-18 13:31:42 +02:00
Remko Tronçon
9a400f17c9 shell: bring up keyboard on iOS 2022-04-18 13:26:48 +02:00
Remko Tronçon
05e341c865 add comments 2022-04-17 17:19:15 +02:00
Remko Tronçon
0f0335568b fix backspace in shell 2022-04-17 17:12:32 +02:00
Remko Tronçon
31bf2734b8 add failing standard testsuite test to unit tests
Temporarily disabled
2022-04-17 16:06:23 +02:00
Remko Tronçon
739556cec0 log error message when generated module fails to load 2022-04-17 16:04:10 +02:00
Remko Tronçon
1606979349 use forth loader for web build 2022-04-17 10:00:15 +02:00
Remko Tronçon
c39724348e reorganize directory structure 2022-04-17 09:30:19 +02:00