X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/4b8e5c0347115ff30841f1d1e71afe59ecb6c82c..678b6c0f7fe1d62abdf249b173a8a922c4e5c1d3:/src/parser/scanner-impl.lisp diff --git a/src/parser/scanner-impl.lisp b/src/parser/scanner-impl.lisp index 2abdff4..00c41eb 100644 --- a/src/parser/scanner-impl.lisp +++ b/src/parser/scanner-impl.lisp @@ -7,7 +7,7 @@ ;;;----- Licensing notice --------------------------------------------------- ;;; -;;; This file is part of the Sensble Object Design, an object system for C. +;;; This file is part of the Sensible Object Design, an object system for C. ;;; ;;; SOD is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by @@ -92,10 +92,13 @@ (with-slots ((string %string) index) scanner (subseq string place-a (or place-b index)))) +(defmethod make-scanner-stream ((scanner string-scanner)) + (make-instance 'character-scanner-stream :scanner scanner)) + ;;;-------------------------------------------------------------------------- ;;; List scanner. -(export 'list-scanner) +(export '(list-scanner list-scanner-p make-list-scanner)) (defstruct (list-scanner (:constructor make-list-scanner (list &aux (%list list)))) "Simple token scanner for lists.