Commit graph

552 commits

Author SHA1 Message Date
Remko Tronçon
e824778981 Add some code comments 2019-03-09 21:04:17 +01:00
Remko Tronçon
d536309494 Update quadruple.wat. 2019-03-09 20:17:16 +01:00
Remko Tronçon
ddcd38c0fb Fix lint 2019-03-09 20:13:00 +01:00
Remko Tronçon
9f927fb45a Upgrade dependencies 2019-03-09 13:48:22 +01:00
Remko Tronçon
ac79104e20 waforth2c: Remove binaryen dependency.
Requires wabt > 1.0.10
2019-03-09 13:48:22 +01:00
Remko Tronçon
a03f8a5fbc waforth2c: Simplify build system 2019-03-09 13:48:22 +01:00
Remko Tronçon
f42c172335 Replace 'npx' with 'yarn exec' 2019-03-09 13:48:22 +01:00
Remko Tronçon
d42b6d578c waforth2c: Improve table initialization 2019-03-09 13:48:22 +01:00
Remko Tronçon
93e3591205 Add experimental Forth->C compiler 2019-03-09 13:48:22 +01:00
Remko Tronçon
6a3c1d96b4 Export state symbols 2019-03-08 22:05:34 +01:00
Remko Tronçon
b23d7ec689 Import better initial table size 2019-03-08 21:59:26 +01:00
Remko Tronçon
ae0f0c6347 Don't import table index offset 2019-03-08 21:52:14 +01:00
Remko Tronçon
02a471d67c Add license 2018-07-31 09:17:08 +02:00
Remko Tronçon
5b920e7620 README tweak 2018-06-09 09:07:08 +02:00
Remko Tronçon
537f2b2b98 Enable sieve tests 2018-06-03 21:49:59 +02:00
Remko Tronçon
6ce0cf86bc Don't use unnecessary parameter for non-data words 2018-06-03 21:40:03 +02:00
Remko Tronçon
1c9d8182e5 Simplify interpreter 2018-06-03 20:43:16 +02:00
Remko Tronçon
d481a1cdb1 Implement UNUSED 2018-06-03 20:08:03 +02:00
Remko Tronçon
f038f31ba0 Implement SOURCE-ID 2018-06-03 20:05:14 +02:00
Remko Tronçon
255f963ae7 Implement TRUE & FALSE 2018-06-03 20:00:31 +02:00
Remko Tronçon
8097b7575c Support BASE in number parser.
Resolves #7
2018-06-03 19:56:09 +02:00
Remko Tronçon
328f362982 Implement more words 2018-06-03 18:35:28 +02:00
Remko Tronçon
56e3750344 Implement EVALUATE 2018-06-03 16:49:36 +02:00
Remko Tronçon
f6293c9d3d Refactor I/O again 2018-06-03 15:17:38 +02:00
Remko Tronçon
5fb2a671ca Implement SOURCE 2018-06-03 09:54:35 +02:00
Remko Tronçon
ef0eb1209b Implement >IN 2018-06-03 09:51:57 +02:00
Remko Tronçon
692e0ea288 Refactor I/O 2018-06-03 09:40:23 +02:00
Remko Tronçon
c5453432f3 Implement */MOD 2018-06-01 23:05:28 +02:00
Remko Tronçon
8140811ead Implement */ 2018-06-01 22:49:16 +02:00
Remko Tronçon
b6fecdebb1 Implement MOVE 2018-06-01 22:26:45 +02:00
Remko Tronçon
9cd4e7134d Move state to memory 2018-06-01 21:39:22 +02:00
Remko Tronçon
eb1971de73 Implement more core words 2018-06-01 21:09:05 +02:00
Remko Tronçon
027caab71a Tweak README 2018-05-31 22:08:34 +02:00
Remko Tronçon
76b1975ff6 Add name section support.
Resolves #2
2018-05-31 22:06:55 +02:00
Remko Tronçon
fed7aa5389 Set benchmark limit to the one from the blog post 2018-05-30 21:12:33 +02:00
Remko Tronçon
ed85a389c3 README tweak 2018-05-30 21:08:11 +02:00
Remko Tronçon
903ccd2df5 Fix direct sieve 2018-05-30 18:09:40 +02:00
Remko Tronçon
d6033e83ce Refactor push compilation in preparation for #1 2018-05-30 14:49:46 +02:00
Remko Tronçon
05d1ee8542 Silence mocha warning 2018-05-29 22:55:17 +02:00
Remko Tronçon
ee0eeb85ef Clean up benchmarks 2018-05-29 22:49:43 +02:00
Remko Tronçon
4043db2afd Use webpack for bundling
Parcel has too many limitations.
2018-05-29 20:54:45 +02:00
Remko Tronçon
bebe495332 Extract sieve benchmark 2018-05-29 13:44:26 +02:00
Remko Tronçon
df64428f77 Import memory and TOS in compiled word modules
In preparation of #1
2018-05-28 13:48:05 +02:00
Remko Tronçon
e49e8439ea Move table index management to WebAssembly core 2018-05-28 13:48:05 +02:00
Remko Tronçon
bdfb63fa88 Factor out push compilation.
In preparation of #1
2018-05-28 13:48:05 +02:00
Remko Tronçon
71b506fddd Optimize loop compilation
Fixes #3
2018-05-28 13:48:05 +02:00
Remko Tronçon
15cb0a8256 Add variable support 2018-05-24 22:16:31 +02:00
Remko Tronçon
664e8863fb Thread data pointer to words 2018-05-24 22:14:55 +02:00
Remko Tronçon
bfb70d6c9c Cleanup 2018-05-24 08:44:55 +02:00
Remko Tronçon
f4eed729ea Remove temporary find 2018-05-23 16:43:44 +02:00