[antlr-interest] Best way to carry input file name along with ASTs
Bill Andersen
bill.andersen at mac.com
Thu Feb 3 07:23:47 PST 2011
Folks
I have a parser that emits an AST and a number of stages after that. At each stage, errors can be detected and I want to emit informative error messages about the source of the problem, to include the input file name.
I know there are several ways to do it but I'm looking for an easy way to have access to the source file name of a given token, even if its several passes down the line.
Any suggestions welcome.
.bill
More information about the antlr-interest
mailing list