X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/6ee1970906d33f0b1b2be20e2f8a4521a6ca514f..4ee476bc29b80fca2faabb4bd286ca70c98f7a44:/src/pset-parse.lisp diff --git a/src/pset-parse.lisp b/src/pset-parse.lisp index ddc34e0..b3b1d8c 100644 --- a/src/pset-parse.lisp +++ b/src/pset-parse.lisp @@ -100,7 +100,8 @@ (defun parse-expression (scanner) (sexp (read stream t))) (scanner-step scanner) (multiple-value-bind (type value) - (decode-property sexp) + (restart-case (decode-property (eval sexp)) + (continue () (values :invalid nil))) (values (cons type value) t t)))) (#\{ (values (cons :fragment @@ -133,6 +134,7 @@ (defun parse-expression (scanner) ;;;-------------------------------------------------------------------------- ;;; Parsing property sets. +(export 'parse-property) (defun parse-property (scanner pset) "Parse a single property using the SCANNER; add it to the PSET." ;; property ::= id `=' expression