[antlr-interest] Fwd: imaginary nodes

Austin Hastings Austin_Hastings at Yahoo.com
Tue Oct 9 06:37:07 PDT 2007


Johannes,

Are "orphaned" rules considered imaginary? Is this true if they are part 
of an orphaned tree, or only if they are unreferenced and empty?

Does this have any impact on the generated code? Will functions for 
those node still be emitted?

=Austin



Johannes Luber wrote:
> Austin Hastings wrote:
>   
>> No, sir. I was referring to "The imaginary token must be defined
>> elsewhere in a grammar or in the tokens section."
>>     
>
> An example:
>
> IMAGINARY:;
>
> Empty rules, which aren't called elsewhere.
>
> Best regards,
> Johannes Luber
>
>
>   



More information about the antlr-interest mailing list