Commit Graph

53 Commits

Author SHA1 Message Date
c22297ea82 fix <| not parsing 2022-05-08 00:06:38 +02:00
c59b35f9c6 fix #<= and #>= not parsing 2022-05-07 23:59:40 +02:00
2cf47085c1 add support for +:= etc. 2022-05-07 23:51:25 +02:00
01d64baaab implement binop-assignment (+= etc.) 2022-05-07 20:30:16 +02:00
a52fe53a01 fix let lazy/inline chains re-using the same variable 2022-05-07 18:33:26 +02:00
1e746be750 add support for 'if else', change hex escapes to '\ab' 2022-05-06 09:03:13 +02:00
4cfc7ae8a8 add support for escaped strings + (multi-)char literatls 2022-05-06 01:23:31 +02:00
aac7bbd878 implement _f literal suffix as shortcut for NUM as f32 2022-04-10 23:58:18 +02:00
ebc701e2f2 fix != operator failing to parse 2022-04-09 08:51:23 +02:00
557c3a8426 always return dependencies, even when hitting an error 2022-03-05 21:02:58 +01:00
896385654a return dependencies for compiling cwa source 2022-02-27 21:26:55 +01:00
cda3eb868b fix "i?SCREEN = 0" being parsed as "i?(SCREEN = 0)" 2022-02-26 21:00:01 +01:00
5f316cf17d add new features to readme 2022-02-26 12:14:31 +01:00
e608d3bb4b implement const 2022-02-26 11:46:38 +01:00
b41b7f250c add include support 2022-02-25 23:38:50 +01:00
71de622634 add source filename to errors to prepare for includes 2022-02-25 23:13:11 +01:00
f433948d4e update dependencies 2022-02-24 23:59:14 +01:00
132aea3996 add load/store intrinsics 2022-02-23 23:52:44 +01:00
1b434f6b30 clippy fixes 2022-02-22 22:40:45 +01:00
196719b35e handle variable scopes correctly, add option to write name section 2021-12-11 23:25:50 +01:00
f02d1de8a7 remove short memory op as it causes parsing ambiguities 2021-11-27 22:39:56 +01:00
c0140d0671 fix two exponential parse time blow-ups 2021-11-21 22:41:00 +01:00
640c7fff52 add ability to include file as data 2021-11-21 13:34:15 +01:00
d62bc8bf86 make curlywas available as a library 2021-11-16 23:30:25 +01:00
e23b98c1ab implement support for start function 2021-11-13 22:27:07 +01:00
29b8c04700 add support for (void) block expression 2021-11-13 17:43:04 +01:00
e4bf292e47 add hex constants and data segments 2021-11-12 22:08:53 +01:00
51cf8a8d28 implement unsigned operators 2021-11-11 23:04:41 +01:00
d3e882cba0 add take left operator, sizecoded wasm4 skip ahead to 512 bytes 2021-11-11 21:20:18 +01:00
911c2e43ad move examples into subfolder, added wasm4 skip_ahead 2021-11-10 22:37:26 +01:00
e9f115ee95 implement table of intrinsics 2021-11-09 22:16:40 +01:00
41ec5a770f only emit global section when not empty 2021-11-08 23:15:29 +01:00
63012947f3 add global vars + i64 & f64 support 2021-11-07 22:20:24 +01:00
387f389c28 ported technotunnel 2021-11-03 23:59:40 +01:00
4793c4eb69 added support for function imports 2021-11-03 22:07:55 +01:00
2d901e4c61 fix branches inside if 2021-11-02 00:03:34 +01:00
b47f1ef2bc can compile uw8loader 2021-11-01 22:59:59 +01:00
d0ee844d8c implemented if 2021-11-01 09:21:36 +01:00
02b8ff860b finish porting to new parser 2021-11-01 00:10:40 +01:00
607c3c7a28 improve compile times 2021-10-31 21:20:13 +01:00
421eefb494 parse trainride as well 2021-10-31 20:49:46 +01:00
52e8210e09 warptunnel parses 2021-10-31 19:07:45 +01:00
6f5d068bd6 new parser successfully parses xorscroll.hw 2021-10-31 18:46:34 +01:00
d2b7719580 more progress on the new parser 2021-10-31 18:33:33 +01:00
7ef98f0e96 try out chumsky parser lib - wip 2021-10-30 23:52:09 +02:00
2267eed21c got trainride working 2021-10-27 22:18:34 +02:00
23d926dbb3 implement some initial f32 support 2021-10-27 20:03:23 +02:00
7f5dd9aa80 some tidying up 2021-10-26 21:02:57 +02:00
af1c8f999b first running uw8 module 2021-10-26 20:29:57 +02:00
3b4eeb5f9c successfully compile basic test to wasm 2021-10-25 21:12:56 +02:00