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

Kieran Simpson kierans777 at gmail.com
Tue Jan 24 16:28:05 PST 2012


On 23/07/64 5:59 AM, Jim Idle wrote:
> Don't use templates.
>
> Sigh.
>
> Jim

One has to admire the amount of emotion conveyed in Jim's terse statements.

>> -----Original Message-----
>> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> bounces at antlr.org] On Behalf Of Gokulakannan Somasundaram
>> Sent: Monday, January 23, 2012 8:12 PM
>> To: Terence Parr
>> Cc: antlr-interest at antlr.org
>> Subject: Re: [antlr-interest] Antlr v4 - C++ target
>>
>> 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.
>> d) Its going to have Exception handling
>> e) I am going to replace structures like string, vector, stack, hash
>> map, list etc with data structures in C++
>> 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?
>>
>> Thanks,
>> Gokul.

I'd be interested in seeing the end result as I'm writing a C++ program 
that uses the C parser to process my DSL.  The wrapper code is 
manageable but annoying.

That is in no way meant to put down the C runtime, I think Jim's done a 
fantastic job on that one!!

Cheers


More information about the antlr-interest mailing list