32 Commits

Author SHA1 Message Date
Johan B.W. de Vries
58f74d3e1d Restored function calling 2022-09-17 19:37:49 +02:00
Johan B.W. de Vries
4b46483895 Worked on floats 2022-09-17 19:21:56 +02:00
Johan B.W. de Vries
7669f3cbca More framework stuff 2022-09-16 17:01:23 +02:00
Johan B.W. de Vries
e589223dbb Static Arrays. CRC32 compiles \o/
Doesn't give right answer yet and out of bound check fails.
No constructor yet for static arrays, but module constants
work. Which don't work yet for tuples and structs.

Also, u32 for indexing please.

Also, more module constant types.
2022-08-18 20:53:21 +02:00
Johan B.W. de Vries
d051160244 Bit shifting 2022-08-16 20:55:20 +02:00
Johan B.W. de Vries
ad6ca71c53 More bitwise ops. Steps towards CRC32 2022-08-12 21:50:42 +02:00
Johan B.W. de Vries
0cf8a246fe Reworked compiler so it uses WasmGenerator
Also, started work on foldl

Also, added a missing FIXME
2022-08-10 20:51:01 +02:00
Johan B.W. de Vries
a13713d709 Cleanup to helpers, making use of runners 2022-08-09 19:04:40 +02:00
Johan B.W. de Vries
253974df24 Adds runner classes to tests, implements xor for u8, u32, u64 2022-08-06 20:11:39 +02:00
Johan B.W. de Vries
a83858aca7 Adds u32 and u64
Also, adds some range checks to constants.
2022-07-09 14:22:38 +02:00
Johan B.W. de Vries
89ad648f34 Moved rendering to codestyle, parsing to parser
Also, removed name argument when parsing, wasn't used.
2022-07-09 14:04:40 +02:00
Johan B.W. de Vries
c181c61040 Extended the import example a bit for sanity's sake 2022-07-09 11:34:20 +02:00
Johan B.W. de Vries
76d80f57cb Imports 2022-07-08 21:06:13 +02:00
Johan B.W. de Vries
374231d206 bytes, u8 types 2022-06-25 20:45:33 +02:00
Johan B.W. de Vries
ac0c49a92c Now runs on new code 2022-06-19 16:54:14 +02:00
Johan B.W. de Vries
9dbdb11732 Simple calls 2022-06-19 15:25:58 +02:00
Johan B.W. de Vries
83b0b705ae If statement, more operators 2022-06-19 15:20:47 +02:00
Johan B.W. de Vries
8c25227f40 Started on compilation, typing changes 2022-06-19 15:10:13 +02:00
Johan B.W. de Vries
658e442df2 - Tuple => ()
- All tests are now parsed by our own AST
2022-06-06 12:18:09 +02:00
Johan B.W. de Vries
865eccd719 Testing with various wasm implementations
Also:
- Started on SIMD before finding out no implementation
  supports that yet
- Type fix result Import / Function
- Various error reporting improvements
- Non-const tuple members
2022-05-07 14:21:50 +02:00
Johan B.W. de Vries
249c00f6a2 Implements mult and sqrt 2022-04-29 12:56:45 +02:00
Johan B.W. de Vries
c5d039aa1f Implements tuple creation / usage 2022-04-29 12:30:31 +02:00
Johan B.W. de Vries
c16eb86e10 Adds type class, making it easier to lookup types 2022-04-29 12:00:38 +02:00
Johan B.W. de Vries
efe24fb4b5 Locals support in wasm. You can now have multiple objects [skip-ci] 2022-03-05 11:43:51 +01:00
Johan B.W. de Vries
b468ffa780 First memory test checks out [skip-ci] 2022-03-04 15:50:53 +01:00
Johan B.W. de Vries
3aef459924 idea / scaffolding [skip-ci] 2022-03-04 09:57:35 +01:00
Johan B.W. de Vries
98d3d8848a i64, f32, f64 (some conversions) 2021-08-07 15:24:10 +02:00
Johan B.W. de Vries
b26efc797d Cleanup, added tests 2021-08-07 14:52:51 +02:00
Johan B.W. de Vries
0c64973b2b UAdd, tests 2021-08-07 14:40:15 +02:00
Johan B.W. de Vries
e972b37149 If statements \o/ 2021-08-07 14:34:50 +02:00
Johan B.W. de Vries
c234f57283 More rewriting [skip-ci] 2021-04-05 18:11:07 +02:00
Johan B.W. de Vries
07aeb52560 more ideas [skip-ci] 2021-04-05 14:40:18 +02:00