X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/3f4ac959a30787a952451c672e6e97d4469631a9..dbac800b3d4476312e1fc73e87931f31cdfdd9a0:/src/pset-parse.lisp diff --git a/src/pset-parse.lisp b/src/pset-parse.lisp index f81ce92..11b4003 100644 --- a/src/pset-parse.lisp +++ b/src/pset-parse.lisp @@ -82,7 +82,8 @@ (defun parse-expression (scanner) expression: term | expression `+' term | expression `-' term term: factor | term `*' factor | term `/' factor factor: primary | `+' factor | `-' factor - primary: int | id | string | `(' expression `)' | `?' lisp-expression + primary: int | id | string | `(' expression `)' | `{' fragment `}' + | `?' lisp-expression Only operators for dealing with integers are provided." (with-parser-context (token-scanner-context :scanner scanner) @@ -101,6 +102,11 @@ (defun parse-expression (scanner) (multiple-value-bind (type value) (decode-property sexp) (values (cons type value) t t)))) + (#\{ + (values (cons :fragment + (parse-delimited-fragment scanner + #\{ #\})) + t t)) (t (values (list :int :id :char :string #\?) nil nil)))))