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 [EMAIL PROTECTED]
>
>
>
> 2008/11/17 Johannes Luber <[EMAIL PROTECTED]>:
>
> > 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address