This shouldn't have leaked.
lexer-error function class
must parser
scan-comment function
lexer-error function class
must parser
scan-comment function
- skip-until function parser
sod-token-scanner class
syntax-error function class
sod-token-scanner class
syntax-error function class
(format nil "`~C'" char))
(t (format nil "<~(~:C~)>" char))))
(format nil "`~C'" char))
(t (format nil "<~(~:C~)>" char))))
-(defun skip-until (scanner token-types &key keep-end)
+(defun %skip-until (scanner token-types &key keep-end)
"This is the implementation of the `skip-until' parser."
(do ((consumedp nil t))
((member (token-type scanner) token-types)
"This is the implementation of the `skip-until' parser."
(do ((consumedp nil t))
((member (token-type scanner) token-types)
discard it. KEEP-END defaults to true if multiple TOKEN-TYPES are given;
otherwise false. If end-of-file is encountered then the indicator list is
simply the list of TOKEN-TYPES; otherwise the result is `nil'."
discard it. KEEP-END defaults to true if multiple TOKEN-TYPES are given;
otherwise false. If end-of-file is encountered then the indicator list is
simply the list of TOKEN-TYPES; otherwise the result is `nil'."
- `(skip-until ,(parser-scanner context)
+ `(%skip-until ,(parser-scanner context)
(list ,@token-types)
:keep-end ,(if keep-end-p keep-end
(> (length token-types) 1))))
(list ,@token-types)
:keep-end ,(if keep-end-p keep-end
(> (length token-types) 1))))