Adjust some parser errors
This commit is contained in:
parent
3a5a16cc06
commit
f9665ee853
1 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,7 @@ parser's debug output.")
|
|||
token (type-of (peek-token)))
|
||||
(error-parser (source (previous-token))
|
||||
"~A~%Got token ~A instead."
|
||||
error-message (previous-token)
|
||||
error-message (peek-token)
|
||||
(source (previous-token))))))
|
||||
|
||||
(defun make-token-stream (tokens)
|
||||
|
@ -221,8 +221,7 @@ comma ',' is required to separate arguments.")))
|
|||
(t
|
||||
(let ((expr (match-syntax assignment)))
|
||||
(consume-token 'token-end-of-statement
|
||||
(format nil "Couldn't find end of expression. ~A found instead."
|
||||
(peek-token)))
|
||||
"Couldn't find end of expression.")
|
||||
expr))))
|
||||
|
||||
(defun wire-up-statements (statements)
|
||||
|
|
Loading…
Add table
Reference in a new issue