mirror of
https://github.com/Noratrieb/crapderive.git
synced 2026-01-14 16:45:08 +01:00
things
This commit is contained in:
parent
e3b554bd41
commit
30735f6298
2 changed files with 7 additions and 8 deletions
|
|
@ -12,9 +12,9 @@ fn main() -> Result<(), io::Error> {
|
|||
let result = parser::parse(&file);
|
||||
|
||||
let ast = result.unwrap_or_else(|e| report_and_exit(&file, e));
|
||||
dbg_pls::color!(&ast);
|
||||
// dbg_pls::color!(&ast);
|
||||
let stmts = ir::compile(ast.into_iter()).unwrap_or_else(|e| report_and_exit(&file, e));
|
||||
dbg_pls::color!(&stmts.0);
|
||||
// dbg_pls::color!(&stmts.0);
|
||||
|
||||
interpret::interpret(stmts.0).unwrap_or_else(|e| report_and_exit(&file, e));
|
||||
|
||||
|
|
|
|||
9
test.at
9
test.at
|
|
@ -1,7 +1,6 @@
|
|||
mov [0], 40
|
||||
mov [1], 41
|
||||
mov [2], 42
|
||||
mov [3], 43
|
||||
movb [0], 65
|
||||
movb [1], 66
|
||||
movb [2], 67
|
||||
mov r0, 0
|
||||
mov r1, 4
|
||||
mov r1, 3
|
||||
int 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue