aphyr / clj-antlr

Clojure bindings for the ANTLR 4 parser
166 stars 32 forks source link

Getting position of tokens in original input stream as metadata ? #1

Closed rbarzic closed 8 years ago

rbarzic commented 10 years ago

Hi,

I'm looking a way to find determine the original position of an element of the parser tree (in order to be able to point to the source in case of a semantic error found after analysis of the parse tree). But I don't think it is currently possible with clj-antlr. How difficult would it be to add this information as meta-data in the parse tree ?

xsc commented 8 years ago

This could be closed once #6 is released.

aphyr commented 8 years ago

Released 0.2.4. :)