summaryrefslogtreecommitdiff
path: root/src/main.lisp
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-03 01:07:13 -0400
committerbd <bdunahu@operationnull.com>2025-04-03 01:07:13 -0400
commit4d8ffb6a29285f12d9ebd788727d633550510d7f (patch)
treece6e4a79d7c9e4fb093517ebdceb2fecd64a6a9d /src/main.lisp
parentca8d176ac7745986c4e3a92ed7cea277e344262d (diff)
Add lexing for immediates, keywords, and associated tests
Diffstat (limited to 'src/main.lisp')
-rw-r--r--src/main.lisp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.lisp b/src/main.lisp
index 98176ec..f6e5754 100644
--- a/src/main.lisp
+++ b/src/main.lisp
@@ -41,13 +41,14 @@ _/_/ _/_/ "
(emit? (not (clingon:getopt cmd :parse))))
(cond
;; complain about num arguments
- ((/= (length args) 1) (error "Wrong number of arguments."))
+ ((/= (length args) 1) (error "Wrong number of arguments.~%"))
((not (util:asm-extension? file))
- (error "The file is not an asm source code file."))
+ (error "The file is not an asm source code file.~%"))
(t (let ((tokens (lex:file->tokens file)))
(if tokens
- (format t "~a" tokens)
- (error "The file does not exist, or it could not be opened."))
+ (progn (pprint tokens)
+ (terpri))
+ (error "The file does not exist, or it could not be opened.~%"))
(format t "Nitimur in Vetitum~%"))))))