* Reporting the scanner position as the error location.
* Setting at-least-one when parsing delimitered lists.
* Keeping the terminator when skipping to one of several terminator
tokens.
(declare (ignore pset))
(with-parser-context (token-scanner-context :scanner scanner)
(parse (and "typename"
(declare (ignore pset))
(with-parser-context (token-scanner-context :scanner scanner)
(parse (and "typename"
(seq ((id :id))
(if (gethash id *module-type-map*)
(cerror* "Type `~A' already defined" id)
(seq ((id :id))
(if (gethash id *module-type-map*)
(cerror* "Type `~A' already defined" id)
(parse (skip-many (:min 0)
(error (:ignore-unconsumed t)
(parse-property scanner module-pset)
(parse (skip-many (:min 0)
(error (:ignore-unconsumed t)
(parse-property scanner module-pset)
- (skip-until (:keep-end t) #\, #\;))
+ (skip-until () #\, #\;))
;; definition; otherwise it might be a message or slot.
(cond ((not (typep type 'c-function-type))
(when (consp name)
;; definition; otherwise it might be a message or slot.
(cond ((not (typep type 'c-function-type))
(when (consp name)
- (cerror*-with-location
- scanner
"Method declarations must have function type")
(setf name (cdr name)))
(parse-slot-item sub-pset base-type type name))
"Method declarations must have function type")
(setf name (cdr name)))
(parse-slot-item sub-pset base-type type name))