chiark / gitweb /
src/parser/parser-expr-proto.lisp: Get `expr' to cache operators.
[sod] / src / parser / scanner-proto.lisp
index c6236c5868e58b75b42562b4b652b831d60529bd..aed4c9f3bd0216ce90dba3c07a36d6f7b8707a92 100644 (file)
@@ -74,7 +74,7 @@ (defgeneric scanner-capture-place (scanner)
   (:documentation
    "Capture the SCANNER's current place and return it.")
   (:method (scanner)
-    (error "Scanner ~S doesn't support rewinding." scanner)))
+    (error "Scanner ~S doesn't support rewinding" scanner)))
 
 (export 'scanner-restore-place)
 (defgeneric scanner-restore-place (scanner place)
@@ -157,6 +157,7 @@ (defgeneric scanner-column (scanner)
   (:documentation "Return the SCANNER's current column number.")
   (:method (scanner) nil))
 
+(export 'scanner-file-location)
 (defun scanner-file-location (scanner)
   "Capture the current location of the SCANNER.