X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/239fa5bd3dff0b38b0cebdd3438311f21c24ba4f..c91b90c3bfd3d3e68cc3d3ff3f431d1e73920061:/src/pset-parse.lisp?ds=sidebyside diff --git a/src/pset-parse.lisp b/src/pset-parse.lisp index be7984e..0bc4680 100644 --- a/src/pset-parse.lisp +++ b/src/pset-parse.lisp @@ -23,6 +23,8 @@ ;;; along with SOD; if not, write to the Free Software Foundation, ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +(in-package #:sod) + ;;;-------------------------------------------------------------------------- ;;; The expression parser. @@ -127,14 +129,14 @@ (defun parse-property (scanner pset) (export 'parse-property-set) (defun parse-property-set (scanner) - "Parse an optional property set from the SCANNER and return it, or `nil'." - ;; property-set ::= [`[' property-list `]'] + "Parse an optional property set from the SCANNER and return it." + ;; property-set ::= `[' property-list `]' (with-parser-context (token-scanner-context :scanner scanner) - (parse (? (seq (#\[ - (pset (many (pset (make-property-set) pset) - (parse-property scanner pset) - #\,)) - #\]) - pset))))) + (parse (seq (#\[ + (pset (many (pset (make-property-set) pset) + (parse-property scanner pset) + #\,)) + #\]) + pset)))) ;;;----- That's all, folks --------------------------------------------------