[antlr-interest] A bug at C# DLLs?

Jim Idle jimi at temporal-wave.com
Mon Nov 17 16:53:26 PST 2008


On Mon, 2008-11-17 at 21:43 -0300, Rodrigo C. L. wrote:

> hello, thanks for the help..
> 
> I did all this throught visual studio with .NET, not Mono. I did
> compile the grammar with the jar (3.1.1). I'm going to try with NAnt,
> but I'm not confident that it'll work.
> 
> Anyway, didn't it ocurred with anyone?
> 
> My ASTLabelType is CommonTree. Does it help if I change it?
> 
> I'm sorry the urge of the questions. I have kind of a deadline. :(
> 
>  -- Rodrigo C. Lopes
>  -- Também em r.cerqueira.lopes at gmail.com
> 
> 
> 
> 2008/11/17 Johannes Luber <jaluber at gmx.de>:
> 
> > I believe the cause lies in a bug in the Mono C# compiler. Can you
> > compile the sources yourself via Visual Studio? Under windows the Nant
> > script is supposed to be working.
> >
> > Johannes
> >
> > Rodrigo C. L. schrieb:
> >> Hello!
> >>
> >> I'm new at ANTLR, and I'm using it to generate code for C# (.NET v3.5).
> >>
> >> My grammar is:
> >>
> >> tokens {
> >> MODULE;
> >> SPECIFICATION;
> >> }
> >> compilation : specification EOF! ;
> >> specification : ( definition )* -> ^( SPECIFICATION definition* ) ;
> >> definition : module ';' ;
> >> module : 'module' ID '{' specification '}' -> ^(MODULE ID specification) ;



I suspect that your specification rule can return nothing. Try

-> ^(MODULE ID specification*) 


You don't need to try nant or anything, using .Net and VS is fine.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081117/9889a0c0/attachment.html 


More information about the antlr-interest mailing list