NEWBIE Questions: ANTLR 4 and C++ run time

45 views
Skip to first unread message

mehrdad ghassempoory

unread,
May 12, 2018, 5:34:33 PM5/12/18
to antlr-discussion

I have been using the ancient ANTLR 2.7.7 with C++ run time. 
I would like to migrate to ANTLR 4, but there does not seem to 
be a live link to C++ run time in antlr.org site. Does this mean 
that C++ is not officially supported? I have seen a C++ run time 
Is this the correct library to use? Is there any documentation on
C++ library? Where do I start? Any help or pointers is most 
welcome.

Mike Lischke

unread,
May 13, 2018, 5:10:53 AM5/13/18
to antlr-discussion
>
> I have been using the ancient ANTLR 2.7.7 with C++ run time.
> I would like to migrate to ANTLR 4, but there does not seem to
> be a live link to C++ run time in antlr.org site.

What link do you expect? Can you share an example for another supported language? I see on the download page (http://www.antlr.org/download.html) links to all supported languages. Does this count?

> Does this mean
> that C++ is not officially supported? I have seen a C++ run time
> library on https://github.com/antlr/antlr4/tree/master/runtime/Cpp.

If something looks like a duck and behaves like a duck it’s likely a duck ;-)

> Is this the correct library to use? Is there any documentation on
> C++ library?

Yes.

> Where do I start? Any help or pointers is most
> welcome.

Two places mostly:

1) https://github.com/antlr/antlr4/blob/master/doc/cpp-target.md, describing the differences for the C++ target compared to Java.
2) The runtime source folder, which contains an example you should be able to compile as is (there’s a readme too).

Ask here or on Stackoverflow (preferred) for detail question you may find on the way.

Mike
--
www.soft-gems.net

Reply all
Reply to author
Forward
0 new messages