pass-lang/src
James T. Martin d9edbab10c
Fix calculation of labels and jump destinations.
Previously, all calculations regarding stack depth and label depth
were broken. *All* of them. Off-by-ones, the logic was wrong, etc.
Variables are still screwed up, but I'm *almost* there, where
"there" is being able to generate functioning programs, hopefully?
2022-10-19 15:42:04 -07:00
..
lex Small refactor of indentation lexer. 2022-10-17 10:02:43 -07:00
asm.c Slightly unfuck codegen for relative jumps and blocks. 2022-10-19 12:21:46 -07:00
asm.h Slightly unfuck codegen for relative jumps and blocks. 2022-10-19 12:21:46 -07:00
format.c Fix calculation of labels and jump destinations. 2022-10-19 15:42:04 -07:00
format.h Factor out executable format handling into a new file. 2022-09-10 22:06:21 -07:00
io.c Factor out executable format handling into a new file. 2022-09-10 22:06:21 -07:00
io.h Factor out executable format handling into a new file. 2022-09-10 22:06:21 -07:00
ir.c Fix calculation of labels and jump destinations. 2022-10-19 15:42:04 -07:00
ir.h Slightly unfuck codegen for relative jumps and blocks. 2022-10-19 12:21:46 -07:00
lang.c Fix calculation of labels and jump destinations. 2022-10-19 15:42:04 -07:00
lang.h Wrote IR gen!! (Literally untested, though.) 2022-09-08 21:07:40 -07:00
lex.c Removed radix#int syntax, added keywords to lexer. 2022-09-10 14:58:22 -07:00
lex.h Removed radix#int syntax, added keywords to lexer. 2022-09-10 14:58:22 -07:00
main.c Slightly unfuck codegen for relative jumps and blocks. 2022-10-19 12:21:46 -07:00
parse.c No assertions fail during codegen (lang.c) for test file. 2022-10-17 11:45:38 -07:00
parse.h Implemented parser! Recognition only, no output. 2022-09-07 20:42:37 -07:00
x86encode.c Slightly unfuck codegen for relative jumps and blocks. 2022-10-19 12:21:46 -07:00
x86encode.h Slightly unfuck codegen for relative jumps and blocks. 2022-10-19 12:21:46 -07:00