[antlr-interest] C++ parser usage ideas

Sohail Somani sohail at taggedtype.net
Wed Oct 12 21:16:18 PDT 2005


On Wed, 2005-12-10 at 23:24 -0400, Jim Crafton wrote:
> It does insert "#line" statements!
> Is that what they are for? I've personally never really used them, so
> I don't have much/any experience with them. I'l look into that though!
> Thanks!

#line statements are how antlr does magic with c++. Try generating a
parser for C++. It will probably have something like:

#line 555 "parser.g"

The above is standard afaik.



More information about the antlr-interest mailing list