Commit Graph

22 Commits

Author SHA1 Message Date
tali 32b3eda926 refactor 'stack pointer' manip to be a parameter instead of a ref 2023-11-30 17:27:47 -05:00
tali fd3b356699 compile scope expressions 2023-11-30 14:01:40 -05:00
tali c089d893c6 fix eval true/false :O 2023-11-30 13:57:18 -05:00
tali 2bdb1511ab add GRT instruction and implement missing comparators 2023-11-30 13:57:18 -05:00
tali b89ddd45b5 don't warning -26 2023-11-30 13:16:04 -05:00
tali 22b0ce775d compile if expressions into conditional branches 2023-11-29 23:06:12 -05:00
tali 58827f230d prettier printing for basic block labels 2023-11-29 23:06:07 -05:00
tali 5a7ae5d5a4 add exp parenthesis syntax (FIXME: shift/reduce conflict!) 2023-11-29 23:04:55 -05:00
tali fca1c8f557 fix bug in binop code gen 2023-11-29 23:04:45 -05:00
tali 3d88cbe319 add comparison instructions and compile some more operators 2023-11-29 22:48:58 -05:00
tali c1eaa5baef remove lir, add basic single pass compiler 2023-11-29 22:27:05 -05:00
tali 846cae64ff temporarily remove branch ins 2023-11-29 21:42:44 -05:00
tali 7569cd2ee4 add object values, CON instruction 2023-11-29 17:56:42 -05:00
tali fb8a2cdcab add code interpreter 2023-11-29 16:52:45 -05:00
tali ee5ca040c7 add runtime value data type 2023-11-29 16:48:24 -05:00
tali b17531b799 add bytecode-like data type 2023-11-29 16:48:12 -05:00
tali 41c64d8c51 move modules around 2023-11-29 13:52:16 -05:00
tali 0e1562984b add ANF IR and conversion pass 2023-11-29 13:44:41 -05:00
tali 3cd480fbee refactor errors 2023-11-29 13:44:39 -05:00
tali c800a14262 use Fmt library in Syn 2023-11-25 16:10:16 -05:00
tali dc3a0368b3 add if/else 2023-11-23 23:18:49 -05:00
tali 466b224e65 spice lang parser and lexer 2023-11-23 23:11:30 -05:00