[antlr-interest] generating runtime error messages with ANTLR

Carter Cheng carter_cheng at yahoo.com
Sun Feb 17 06:37:04 PST 2008


Hi everyone,

I have been trying to build a compiler using ANTLR
3.0.1 to handle most of the frontend work. I am
curious if there is a canonical method for passing
line count, character position information downstream
to other phases of the compiler which can be then used
for error reporting either in the type check phase
after the AST is constructed or at runtime.

Is there some canonical method for capturing this
information in the AST which can then be used to
generate error reports?

Regards,

Carter.

 


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


More information about the antlr-interest mailing list