[antlr-interest] ANTLR C++ target

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Jul 2 22:24:58 PDT 2008


On 7/2/08 5:50 PM, "Jim Idle" <jimi at temporal-wave.com> wrote:

> I am going to look properly at a pure C++ approach after we release 3.1
> (shortly hopefully, it is all  waiting on me ;-). Though I am still unsure
> what this would give anyone over having some C++ facades for the C runtime.
> Though, in theory, it should be no slower and not using pointers to functions
> might make the optimizer more effective. For this reason I am also
> contemplating one (or more) C-lite runtimes, as many people don't need to
> override anything but the error message handling.

Usually C++ facade around some C library make its usage more simple and
safe. Less lines of code to write.

Because e.g. we can hide in c++ constructor/destructor issues of correct
init/destroy.  

And yes, we must be able as in C-parser, so in C++ parser "convert"
last_err_code into real c++ exception to throw it through the rest part of
application.

As I know ANTLR3 internally do not use exceptions to do job, and this is
good. Btw, have not see yet how this was made, but I have see nice solution
in the IBM ICU library on this.

-- 
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