On 31/10/13 17:21, Lars Nilsson wrote:
Perhaps remove DRUG from the grammar and use the transform function on
a parse-result to do something like
(insta/transform {:WORD (fn [w] (if (...) [:DRUG w] [:WORD w]))} parse-result)
so [:DRUG w] is emitted for whatever criteria you may have (lookup)
when matched, otherwise [:WORD w] to retain the original content.
Lars Nilsson
that is not a bad idea at all...I'll try it very soon. Many thanks for
brainstorming Lars :)
Jim
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.