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

shmuel siegel antlr at shmuelhome.mine.nu
Mon Nov 17 17:08:32 PST 2008


Jim Idle wrote:
> On Mon, 2008-11-17 at 21:43 -0300, Rodrigo C. L. wrote:
>> >>
>> >> 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
>   
Really? Why wouldn't it at least return the token SPECIFICATION. Maybe 
SPECIFICATION is undefined.




More information about the antlr-interest mailing list