Alexsandro, I don't know about Parsatron, but Parse-EZ ( https://github.com/protoflex/parse-ez) provides the 'line-pos" function that returns [line# column#] vector.
Here is the equivalent code for your example using Parse-EZ: ------------ (use 'protoflex.parse) (defn anbn [] (let [as (regex #"a+") bs (string (apply str (repeat (count as) \b)))] (str as bs))) (defn xdny [] (regex #"xd+y")) (defn pL [] (any anbn xdny)) ------------ You can call your parse function pL through the parser entry function "parse": user=> (parse pL "xddy") "xddy" user=> (parse pL "aabb") "aabb" user=> (parse pL "aacc") Parse Error (exception thrown) Panduranga Adusumilli -- 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