Commit graph

34 commits

Author SHA1 Message Date
janis 4f5579b6fd
lints 2025-11-03 17:06:00 +01:00
janis 8e1af956b0
it doesn't crash (crazy) 2025-11-03 00:54:34 +01:00
janis d46837903b
dangerous: resize width field on Operand 2025-11-02 17:27:30 +01:00
janis c0dc1361ae
add more tokens 2025-11-02 00:00:22 +01:00
janis 703aa299c8
split current_stack_size u64 into current/max u32 to allow deallocating the top stack allocation 2025-11-01 17:39:17 +01:00
janis 16bdac93ad
free operands after use 2025-11-01 16:43:26 +01:00
janis 105c052e95
more fixes for codegen 2025-11-01 02:50:39 +01:00
janis dae2e00569
fix vec_insert_many 2025-11-01 00:28:59 +01:00
janis da2a298baf
get-register-name from width and index 2025-10-31 17:14:20 +01:00
janis e3e0d6843f
fix issues with initial codegen 2025-10-31 16:03:28 +01:00
janis d5de30d9e7
initial codegen 2025-10-31 15:49:10 +01:00
janis 6bdd2ef18a
export display/debug impls for ast to ast_debug.rs 2025-10-31 15:48:53 +01:00
janis c7f026a678
fix vec extend 2025-10-31 15:19:26 +01:00
janis 9b4d42ba3a
export ast defs to .inc file 2025-10-31 15:07:17 +01:00
janis d754f8c4b9
use trampoline to aign stack for call to rust panic 2025-10-31 14:52:59 +01:00
janis e79af01925
ast: correctly resolves var refs 2025-10-31 01:55:04 +01:00
janis a769fece84
pass scope in walk_for_each 2025-10-31 00:58:27 +01:00
janis adb30e983c
ast node: span 2025-10-30 22:54:14 +01:00
janis 56354237c6
build symbol table 2025-10-30 22:16:45 +01:00
janis ad3b0205c2
ast walking 2025-10-30 21:41:27 +01:00
janis 525b78cdf4
pointer type 2025-10-30 14:35:49 +01:00
janis e54313b6a2
args, var-ref 2025-10-30 13:48:08 +01:00
janis 84e87824ba
ast: placeness, assignment, var decl, deref, address-of 2025-10-30 01:41:16 +01:00
janis 4491df79a2
tokeniser: int/float types 2025-10-30 00:35:35 +01:00
janis 2df4d182f9
ast: placeness 2025-10-30 00:31:51 +01:00
janis 838c96f04f
update python script, add slash and star tokens 2025-10-30 00:11:46 +01:00
janis 886525cf7e
support parenthesised expressions 2025-10-29 23:48:55 +01:00
janis c609fe4ec6
fix blocks, increase AstNode by 1 qword 2025-10-29 23:31:52 +01:00
janis d2597d2de7
can parse basic function 2025-10-29 23:17:02 +01:00
janis 8740fea99d
fix tokeniser for: void 2025-10-29 22:39:27 +01:00
janis 4e55fa74f4
parse structs and functions from asm for rust tests 2025-10-29 22:10:14 +01:00
janis bf9d07b462
init tokeniser with buffer 2025-10-29 20:39:22 +01:00
janis 62751f30ab
move more stuff to shared test file 2025-10-29 16:20:42 +01:00
janis 86bbab90c3
modularise test with shared rust structs
add expect/unwrap token methods to tokeniser to aid with parsing
2025-10-29 14:00:17 +01:00