Johan B.W. de Vries
2a6da91eb9
Simplified locations, adds typing tests
2022-09-19 14:53:22 +02:00
Johan B.W. de Vries
4d3c0c6c3c
StaticArray with constant index works again
...
Also, fix issue with f64 being parsed as f32
2022-09-19 14:43:15 +02:00
Johan B.W. de Vries
5da45e78c2
More work on StaticArray
...
Also naming fix, buildin => builtin.
Removes the use of ConstantStaticArray, as this was context dependent
2022-09-19 13:50:20 +02:00
Johan B.W. de Vries
299551db1b
All primitive tests work again
2022-09-19 11:49:10 +02:00
Johan B.W. de Vries
07c0688d1b
Ripping out old type system. Will have to reimplement
...
bytes, static array, tuple and struct.
2022-09-17 20:50:06 +02:00
Johan B.W. de Vries
564f00a419
Work on ripping out old type system
2022-09-17 20:13:16 +02:00
Johan B.W. de Vries
4b46483895
Worked on floats
2022-09-17 19:21:56 +02:00
Johan B.W. de Vries
b2816164f9
Improved unification
2022-09-17 17:14:17 +02:00
Johan B.W. de Vries
6f3d9a5bcc
First attempt at ripping out old system
...
This breaks test_addition[u32], which is a good thing to chase next.
2022-09-16 17:39:46 +02:00
Johan B.W. de Vries
48e16c38b9
FunctionParam is a class, more framework stuff
2022-09-16 16:43:40 +02:00
Johan B.W. de Vries
7acb2bd8e6
Framework sketch
2022-09-16 15:54:24 +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
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
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
cc762cfa44
Typing is a chapter of its own
2022-07-09 12:48:54 +02:00