[antlr-interest] Bug in all targets? (Was: Possible bug in C# backend)
Terence Parr
parrt at cs.usfca.edu
Wed Dec 26 10:12:30 PST 2007
add http://www.antlr.org:8888/browse/ANTLR-200
Ter
On Dec 22, 2007, at 3:50 PM, Johannes Luber wrote:
>> I know an empty scope probably should not be used (I was debugging
>> and I
>> just left it there to avoid too much retyping) but I suppose it
>> should
>> generate right code or fail the code generation not fail during the
>> compile step.
>
> Empty scopes are only waste of resources, but not actually
> forbidden. I
> wonder if the other targets exhibit the same behaviour. I've created a
> sample grammar:
>
> grammar EmptyScope;
>
> options{
> language=CSharp;
> }
>
> compilation_start
> : rule1*
> ;
>
> rule1
> scope {
> }
> : WS
> ;
>
> WS: ' ';
>
> Testing for Java I saw the same error, so I suppose this is true for
> all
> targets.
>
> Johannes
More information about the antlr-interest
mailing list