[antlr-interest] Re: Skipping grammar

Arnar Birgisson arnarb at oddi.is
Wed Oct 8 05:39:54 PDT 2003


No, the grammar actions have to be written in the corresponding
language. I staret off in Java, and porting the actions to C++ was
fairly easy.

You either need to maintain seperate .g files for each target, or
preprocessing them in some way.

Arnar

> -----Original Message-----
> From: pwolleba [mailto:pwolleba at yahoo.no] 
> Sent: 8. október 2003 12:37
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Re: Skipping grammar
> 
> 
> But can you use the same script both for Java as well as C++?
> 
> best regards,
> Per
> 
> --- In antlr-interest at yahoogroups.com, "Arnar Birgisson" 
> <arnarb at o...> wrote:
> > Hi..
> > 
> > > I am a bit curious if it is still possible 
> > > to make a C++ parser after I have implemented the multiplexer, I 
> had 
> > > hoped I could use the same parser for both platforms. 
> > 
> > Sure, I'm using a multiplexing lexer, all written in C++ and it 
> works
> > great!
> > 
> > Arnar
> 
> 
>  
> 
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/ 
> 
> 


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list