Should i expect the following to work?
(define-parse-tree-synonym hostname-char #.(cl-ppcre::parse-string "[-a-zA-Z0-9_.]"))
(define-parse-tree-synonym pathname-char (:char-class hostname-char #: #@ #& #? #= #+ #, #! #/ #~ #* #' #% #\ #$)) (define-parse-tree-synonym pathname (:sequence (:greedy-repetition 0 nil pathname-char)))
(scan-to-strings '(:sequence pathname) "My page is at http://www.metabang.com/foo/ boo.")
Error: Unknown symbol HOSTNAME-CHAR in character class While executing: PPCRE::CONVERT-CHAR-CLASS-TO-HASH Type Command-. to abort.
See the Restarts… menu item for further choices. 1 > Thanks,
On Tue, 24 Jan 2006 23:05:53 -0500, Gary King gwking@metabang.com wrote:
Should i expect the following to work?
No, parse tree synonyms are synonyms for parse trees. The constituents of a character class aren't parse trees.
Cheers, Edi.
OK. That makes sense and it's what I was starting to decide was happening...
thanks,
On Jan 25, 2006, at 3:53 AM, Edi Weitz wrote:
On Tue, 24 Jan 2006 23:05:53 -0500, Gary King gwking@metabang.com wrote:
Should i expect the following to work?
No, parse tree synonyms are synonyms for parse trees. The constituents of a character class aren't parse trees.
Cheers, Edi.
cl-ppcre-devel@common-lisp.net