Antlr4 C ++ target

We are starting a project in which we will need to parse the python source files in a C ++ application. I used Antlr2 some time ago to create several compilers, but this is the first time I use Antlr4.

It looks like the C ++ antlr4 target is quite active at https://github.com/antlr/antlr4-cpp

So my question is basically what is the status of the Antlr4 C ++ target, is it ready to run? To use the C ++ target, just grab the Antlr4 source and copy Antlr4-cpp to this tree and build?

Please note: I don’t need something absolutely stable and guaranteed to never change, just something that is basically stable enough to start being used if there are small / moderate changes to the API in the future, it’s fine, I understand that this looks pretty early.

If the target of antlr4-C ++ is NOT ready, what syntax generator would you recommend for creating a python parser in C ++?

thanks

+6
source share
2 answers

The ANTLR4 C ++ target is ready for use: http://www.soft-gems.net/index.php/tools/49-the-antlr4-c-target-is-here . Only a small organizational structure is required and should be combined with the main repo.

+4
source

This repository has the latest source code for the ANTLR 4 C ++ target.

https://github.com/antlr/antlr4-cpp

Here is a good discussion about goal status.

https://groups.google.com/forum/#!topic/antlr-discussion/HV2QpwwjtLg

+2
source

Source: https://habr.com/ru/post/987004/


All Articles