~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/parser/floc-proto.lisp (make-condition-with-location): Error checking.
[sod]
/
src
/
lexer-impl.lisp
diff --git
a/src/lexer-impl.lisp
b/src/lexer-impl.lisp
index
7e953ef
..
821849b
100644
(file)
--- a/
src/lexer-impl.lisp
+++ b/
src/lexer-impl.lisp
@@
-44,7
+44,7
@@
Usable in `format''s ~/.../ command."
(declare (ignore colonp atsignp))
Usable in `format''s ~/.../ command."
(declare (ignore colonp atsignp))
- (cond ((null char) (write-string "<e
of
>" stream))
+ (cond ((null char) (write-string "<e
nd-of-file
>" stream))
((and (graphic-char-p char) (char/= char #\space))
(format stream "`~C'" char))
(t (format stream "<~(~:C~)>" char))))
((and (graphic-char-p char) (char/= char #\space))
(format stream "`~C'" char))
(t (format stream "<~(~:C~)>" char))))
@@
-109,7
+109,7
@@
(cond-parse (:consumedp cp :expected exp)
((satisfies whitespace-char-p) (parse :whitespace))
((scan-comment char-scanner))
(cond-parse (:consumedp cp :expected exp)
((satisfies whitespace-char-p) (parse :whitespace))
((scan-comment char-scanner))
- (t (if cp (lexer-error char-scanner exp
cp
) (return)))))
+ (t (if cp (lexer-error char-scanner exp) (return)))))
;; Now parse something.
(cond-parse (:consumedp cp :expected exp)
;; Now parse something.
(cond-parse (:consumedp cp :expected exp)
@@
-168,7
+168,7
@@
;; must make progress on every call.
(t
(assert cp)
;; must make progress on every call.
(t
(assert cp)
- (lexer-error char-scanner exp
cp
)
+ (lexer-error char-scanner exp)
(scanner-token scanner)))))))
;;;----- That's all, folks --------------------------------------------------
(scanner-token scanner)))))))
;;;----- That's all, folks --------------------------------------------------