Johan B.W. de Vries
4236340ff6
Organized tests in type classes, removed some redundant ones
2023-11-15 11:59:59 +01:00
Johan B.W. de Vries
4a4c62c728
Support static array of tuples
2023-11-15 11:40:24 +01:00
Johan B.W. de Vries
fcbd32a880
Support using structs in tuples
2023-11-15 11:36:25 +01:00
Johan B.W. de Vries
bd80210ba3
Support structs in extracting and inputting values
2023-11-14 15:04:20 +01:00
Johan B.W. de Vries
a73a3b2bb4
Improve test information on errors during parsing
2023-11-14 14:09:30 +01:00
Johan B.W. de Vries
8fa2e4830e
Support negative literals
2023-11-14 14:09:17 +01:00
Johan B.W. de Vries
ddc0bbdf30
Cleanup
2023-11-13 14:34:07 +01:00
Johan B.W. de Vries
0131b84146
Implemented round trip input / output
2023-11-13 14:32:17 +01:00
Johan B.W. de Vries
f4f068137a
More work on type testing.
...
Also, reduced spam on typing dump by only showing the
'back on todo list' count, rather than repeat them all.
Also, typing on tests.integration.helpers
2023-11-13 13:00:34 +01:00
Johan B.W. de Vries
769eaaf243
Started on extracting values. Works for most, not for tuples yet.
2023-11-11 15:53:43 +01:00
Johan B.W. de Vries
dff5feed86
More tests and fixes
2023-11-11 15:19:33 +01:00
Johan B.W. de Vries
ff0286bcf6
More framework
2023-11-11 13:45:03 +01:00
Johan B.W. de Vries
ef00b3a91c
Started on a test generation framework
2023-11-11 12:02:37 +01:00
Johan B.W. de Vries
fd3939a680
Feat: Use struct in tuple
2023-11-10 15:35:16 +01:00
Johan B.W. de Vries
16ec664cb6
Feature: Tuples with tuples in constants
2023-11-10 15:23:10 +01:00
Johan B.W. de Vries
1536ea0bbb
Enable use of bytes in constants
...
Including using them in tuple constants.
2023-11-10 14:54:22 +01:00
Johan B.W. de Vries
20d177e2c5
Add partial tuple of tuple support
2023-11-10 14:00:29 +01:00
Johan B.W. de Vries
205897101f
Adds a typing system to Phasm
2023-01-07 16:24:50 +01:00
Johan B.W. de Vries
7a8b1baa25
Some repo cleanup
2022-08-20 18:21: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
c4ee2ab3dc
Memory initialization is now done during compilation
...
Also, the user can now define tuple module constants
2022-08-17 21:07:33 +02:00
Johan B.W. de Vries
bac17f47eb
ModuleConstant definitions and references
2022-08-16 21:25:03 +02:00
Johan B.W. de Vries
d051160244
Bit shifting
2022-08-16 20:55:20 +02:00
Johan B.W. de Vries
75d7e05519
First uint cast, more options for folding
2022-08-16 20:38:41 +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
b6fb0d45b6
Implements foldl
2022-08-11 19:56:47 +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
451a8e9158
Removes the old ___new_reference___ allocator
2022-08-09 20:42:02 +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
41b47e43d6
Implements RunnerWasmer, makes uses of its wat2wasm
2022-08-07 14:46:20 +02:00
Johan B.W. de Vries
0edd04c207
Adds RunnerWasmtime
2022-08-07 14:12:37 +02:00
Johan B.W. de Vries
58424cf2a0
Adds runner for pywasm
2022-08-06 20:50:43 +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
fea817ca00
Added more robust and easy way to generate WASM
2022-08-06 12:43:46 +02:00
Johan B.W. de Vries
e03f038cf9
More work on allocator
2022-08-04 20:51:59 +02:00
Johan B.W. de Vries
b42ae275b9
Start on new allocator
2022-08-04 20:09: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
d32613d9b8
We have a name \o/
2022-07-09 12:35:32 +02:00
Johan B.W. de Vries
14eede6b06
Cleanup to wasm.py
2022-07-09 12:30:28 +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
467d409d80
Add tests for static checks
2022-06-24 21:53:18 +02:00
Johan B.W. de Vries
0da309a280
Remove old code
2022-06-19 17:04:20 +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