I am trying to match sequences with fixed start and end but varying
content. After lots of experiments I start to suspect there is either bug,
or severe misunderstanding on my side.
Here is one example that behaves illogical to me
(sp/conform
(sp/cat
:start #{1}
:mid (sp/+
(sp/alt :b (sp/+ #{3}) :c (sp/+ #{9})))
:end #{10})
[1 3 3 3 9 9 3 10])
=> invalid ??
slight variation
(sp/conform
(sp/cat
:start #{1}
:mid (sp/* ;; <<=
(sp/alt :b (sp/+ #{3}) :c (sp/+ #{9})))
:end #{10})
[1 3 3 3 9 9 10]) ;; <<=
=> invalid ??
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.