[antlr-interest] Antlr v4 - C++ target

Gokulakannan Somasundaram gokul007 at gmail.com
Tue Jan 31 16:35:01 PST 2012


>
> Hi Gokulakannan,
>
>   I am also converting to C++ but my goal is primarily performance. I
> don't intend to use templates.
>   As far as tradeoffs, the commontoken struct has a field for everything
> so lookup after lexing is fast but at the cost of memory use. I'm
> investigating replacing some of these with member functions that only
> calculate values when needed or redirect to a different data structure.
>
>
> Well my goal is also about performance primarily. Infact that was the
reason, i choose to work with templates.  Regarding the memory use, your
attempt will be definitely useful. I can incorporate it, if its proven
faster. But for the memory issue, i have a different plan altogether. I
will start it as a new thread, once i finish this development.

Thanks,
Gokul.


More information about the antlr-interest mailing list