chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/codegen-proto.lisp (definst): Overhaul argument-list processing.
[sod]
/
src
/
pset-parse.lisp
diff --git
a/src/pset-parse.lisp
b/src/pset-parse.lisp
index b3b1d8ca571612e0e89f34a4200c9301bf664553..a2199b69e50513562e46b199fa9f84b3f0344703 100644
(file)
--- a/
src/pset-parse.lisp
+++ b/
src/pset-parse.lisp
@@
-73,7
+73,7
@@
(defun parse-expression (scanner)
"Parse and evaluate a simple expression.
The result is a pair (TYPE . VALUE). Currently, type types are `:id',
"Parse and evaluate a simple expression.
The result is a pair (TYPE . VALUE). Currently, type types are `:id',
- `:int', `:string',
and `:char
'. If an error prevented a sane value from
+ `:int', `:string',
`:char', `:fragment', `:type
'. If an error prevented a sane value from
being produced, the type `:invalid' is returned.
The syntax of expressions is rather limited at the moment, but more may be
being produced, the type `:invalid' is returned.
The syntax of expressions is rather limited at the moment, but more may be
@@
-120,7
+120,7
@@
(defun parse-expression (scanner)
(values (cons :type (car dc))
t t))))
(t
(values (cons :type (car dc))
t t))))
(t
- (values (list :int :id :char :string #\?)
+ (values (list :int :id :char :string #\?
#\{ #\<
)
nil nil)))))
(or (seq (#\+) add)
(seq (#\-) sub)
nil nil)))))
(or (seq (#\+) add)
(seq (#\-) sub)