diff options
author | bd <bdunahu@operationnull.com> | 2025-04-10 03:53:43 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-10 03:53:43 -0400 |
commit | df508744ec2975cec0ba05e8a4358c1c41265c4c (patch) | |
tree | ce8ee03b9d25b739a2e687c69b14d9221420e4fa /src/main.lisp | |
parent | 41baa17a9855bc970becf3dab02f7014753b45db (diff) |
Add untested (but works on the single input file) code emission
Diffstat (limited to 'src/main.lisp')
-rw-r--r-- | src/main.lisp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.lisp b/src/main.lisp index 9692603..f20b022 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -38,10 +38,9 @@ _/_/ _/_/ " (error "The file is not an asm source code file.~%")) (t (let ((str (uiop:read-file-string file))) (if str - (progn (pprint (esrap:parse 'parse:str->ast (string-upcase str))) - (terpri) - (maphash #'(lambda (k v) (format t "~A => ~A~%" k v)) util:label-table) - (format t "---~%")) + (let ((ast (esrap:parse 'parse::str->ast (string-upcase str)))) + (when emit? + (format t "~a~%" (emit::emit ast)))) (error "The file does not exist, or it could not be opened.~%")) (format t "Nitimur in Vetitum~%")))))) |