X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/2b8759bf0239b0a98ac830952ed69572580826c1..288c7651d95b3d75af6d38d8ed40e87d63886b4f:/src/parser/scanner-proto.lisp diff --git a/src/parser/scanner-proto.lisp b/src/parser/scanner-proto.lisp index c6236c5..aed4c9f 100644 --- a/src/parser/scanner-proto.lisp +++ b/src/parser/scanner-proto.lisp @@ -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.