[antlr-interest] How to use antlr V3 with C++
Jim Idle
jimi at temporal-wave.com
Mon Aug 18 09:34:35 PDT 2008
On Mon, 2008-08-18 at 07:30 -0700, miles mccoo wrote:
>
>
> I used the original antlr ages ago and now I need to use it again.
> From the description Antlr3 is what I want to use, but I haven't been
> able to find any information on how to use it in c++.
>
> Is there a wiki, tutorial, example, or msg thread on how to generate a
> parser that I can compile into my c++ application? Everything I've
> found assumes I'm a java programmer, which I'm not. Is see the page
> with the target libs, but no info on how to use them.
>
Use the C target, but compile the resulting .c files as c++ code and it
will all work. Use the C examples in the examples download for more
guidance (specifically the C parser examples).
The C API is documented by following the API Documentation link from the
main ANTLR home page.
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080818/2666a93c/attachment.html
More information about the antlr-interest
mailing list