[antlr-interest] Antlr v4 - C++ target
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Tue Jan 24 08:32:37 PST 2012
On 1/24/12 6:12 AM, "Gokulakannan Somasundaram" <gokul007 at gmail.com> wrote:
Hi Gokulakannan,
> Hi All,
> I have decided to spend some time to come up with a C++ Target for
> ANTLR 3.4, as i need it desperately for my project. I have started working
> on it and i am going to come with a initial version within a week or two.
> My ideas
> a) The details of the parser related functionality will be stolen from C
> Target
> b) It is not going to have function pointers/virtual functions. Its going
> to be all templates
> c) It is going to be a header-only library.
ok
> d) Its going to have Exception handling
Sense?
> e) I am going to replace structures like string, vector, stack, hash map,
> list etc with data structures in C++
Very against !!
Why ??
Just use C-target things...
OR at least NOT use std::strings ...
C target uses really minimal techniques with strings ...
std::string will bring back copies ...
> f) I am trying to make it as much type-safe as possible
>
> But Since i don't have much experience with building Trees, i am not going
> to touch the .stg files of the Tree Parser. I need some-one to take it up,
> once i put out the first version.
>
> Any suggestions?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the antlr-interest
mailing list