I started one earlier this year for experimenting. It was a private repository, but if people are interested in taking it somewhere I can make it public.
https://github.com/sharwell/antlr4cpp_exp
I'm just glad that I can show this off: ;)
https://github.com/sharwell/antlr4cpp_exp/blob/master/antlr4cpp/antlr/v4/runtime/misc/unordered_ptr_map.hpp
Sam
Is CMake the best build for C++?
https://github.com/sharwell/antlr4cpp_exp/blob/master/antlr4cpp/antlr/v4/runtime/misc/unordered_ptr_map.hpp
To OP, just for sake of argument, I don't think the automated approach is missing much in the way of optimization. The runtime isn't 'thick' enough for that kind of issue IMO, and certainly it is easy enough to optimize after the fact as we always do.
Hi,I am very happy to see the C++ target effort was kicked off. Please make tree parser a first class citizen this time. I am still waiting for the tree parser support in C++ target for Antlr 3.
Is the Antlr4 grammar a lot different than Antlr3?
I need to start a new parser project right now. I can't wait for the Antlr4 C++ support to be completed before starting my project. I wonder if I use Antlr3 for now, how much effort will be needed to convert it to Antlr4 later on?
Hi Yiqing,
ANTLR 4 does not use tree parsers. Instead, it provides automatically-generated listener and visitor data structures that walk a parse tree, and the parse tree shape is always determined by the grammar. We have found this strategy to be much more maintainable in project ranging in size from small school assignments to large-scale applications such as IDE integrations and data processing pipelines.
Including support for parse trees, listeners, and visitors will certainly be a high priority for the target. However, keep in mind that the C++ target is still not ready for use, and there is no timeframe established for when that will change.
Thank you,
--
Sam Harwell
Owner, Lead Developer
From: antlr-di...@googlegroups.com [mailto:antlr-di...@googlegroups.com]
On Behalf Of Yiqing Yang
Sent: Wednesday, May 27, 2015 3:16 PM
To: antlr-di...@googlegroups.com
Subject: Re: [antlr-discussion] C++ target
Hi,