Commit Graph

73 Commits

Author SHA1 Message Date
da9956c2d2 dont print ast, we dont need it 2026-06-02 06:42:59 +10:00
1773c035cf fix issue where getFunction was returning the vtable index and not the symbol index 2026-06-02 06:40:12 +10:00
ec6b99bc60 fix calling methods 2026-06-01 21:11:59 +10:00
f2338e6c51 fix tiny bug in calling functions 2026-06-01 19:50:01 +10:00
102ee32516 call method works!!!! 2026-06-01 19:34:50 +10:00
64babeaa38 did a HECKTON of work on function calls, now just need to add the CALL_METHOD instruction to the vm and i think it all works 2026-06-01 19:32:05 +10:00
7d65cd4b2b fix returning i think? 2026-06-01 11:19:46 +10:00
711483ce23 fix struct field access and setting 2026-06-01 10:39:53 +10:00
dc7c81e08b better stack trace 2026-05-31 21:27:22 +10:00
2f54859ddc fix an issue where function call args were being passed backwards 2026-05-31 20:47:22 +10:00
7a25098c37 it was a heck ton of work but we can create structs 2026-05-31 20:03:26 +10:00
44be4b8882 for loops work 2026-05-30 14:41:54 +10:00
78b143cef1 Merge branch 'main' of https://chookspace.com/SpookyDervish/Comet 2026-05-29 07:43:24 +10:00
37774877f7 started work on for loops but i have to go 2026-05-29 07:41:21 +10:00
2f4970b4ab parse import statements 2026-05-28 13:09:37 +10:00
e8145ed2bb finishing for the night 2026-05-27 22:03:07 +10:00
88a6df6906 variables cant be left uninitialized 2026-05-27 22:02:24 +10:00
5fba8effaf fix bug with resolving variable types 2026-05-27 21:42:08 +10:00
83efbc77ed add division by zero error 2026-05-27 21:26:17 +10:00
f0acf42ef7 cleanup uneeded prints and make division always return a double 2026-05-27 21:11:27 +10:00
48a6be2964 forgot to make it so expressions can also have their type resolved 2026-05-27 21:01:54 +10:00
1b6cc738ce floats and implicit conversion is basically fully working 2026-05-27 20:58:51 +10:00
11418c1a3b slowly getting floats working 2026-05-27 20:06:27 +10:00
cd131834e6 while loops done 2026-05-27 14:47:39 +10:00
61d48ef453 if statements working 2026-05-27 13:41:06 +10:00
c95fd36446 functions are fully working! i think this is the hardest bit done until structs 2026-05-27 13:36:20 +10:00
864c059d19 vm execution loop working 2026-05-27 11:15:02 +10:00
02cab5c524 deserialization is NOT working 🥀 2026-05-27 07:45:31 +10:00
6096444d79 we're serializing correcly i think!!! 2026-05-27 06:33:00 +10:00
59a03484d9 if statements!!!! :D 2026-05-26 19:54:36 +10:00
c7d0d4e2f2 function calls working! 2026-05-26 18:06:07 +10:00
b72bc67801 got function def working 2026-05-26 14:56:44 +10:00
1cfa9fa572 test file 2026-05-26 10:58:59 +10:00
1d646ef21b started work on assignment 2026-05-26 07:57:21 +10:00
1d4a90ad5d expressions working! 2026-05-25 21:37:54 +10:00
e2c0015c24 we compiled our first instruction!!! :D 2026-05-25 17:59:09 +10:00
7b7cc0b303 started work on compiling for the vm 2026-05-25 07:59:21 +10:00
46ba549309 delete testing files 2026-05-10 21:25:39 +10:00
7065dafa7f implicit casts from parent to child struct 2026-05-10 21:21:44 +10:00
fafa5bf714 METHODS ARE WORKING FOR INHERITANCE 2026-05-10 21:03:32 +10:00
b897b63660 parse inheritance 2026-05-10 19:03:20 +10:00
17615c62a9 wrote a test program for inheritance 2026-05-10 18:55:40 +10:00
4ae73b4474 added command line args to cometc 2026-05-05 18:58:52 +10:00
be86dd750d added a tests folder 2026-05-05 16:28:22 +10:00
f524001c9f only just realised i fixed structs inside structs lmao 2026-05-05 14:29:29 +10:00
02ac125ef2 tryna fix bugs but it aint really working, i'll fix it later ig 2026-05-05 07:42:29 +10:00
d3b1d3a3ac struct inside struct access works i think 2026-05-05 06:56:40 +10:00
6d577a0e5b add check to make sure enough args are passed to functions 2026-05-04 20:53:49 +10:00
0836495cd4 ensure number of args passed to constructor is correct 2026-05-04 20:47:36 +10:00
19fb905bc0 added inline functions 2026-05-04 20:14:51 +10:00