[antlr-interest] RuleScope generation problem
Johannes Luber
jaluber at gmx.de
Fri Oct 12 07:41:03 PDT 2007
Hi,
if I use the following grammar snippet
scope RuleScope {
TypeInterpreter current;
string type; // Designates the type (e.g. 'fragment') as string
}
then I get
protected class RuleScope_scope
{
protected internal TypeInterpreter current;
protected internal string type;
protected internal // Designates the type (e.g. 'fragment') as string;
}
As one can see, the comment causes to generate an extra code line, which
lacks some information. If I change the definition of the scope to
scope RuleScope {
string type; // Designates the type (e.g. 'fragment') as string
TypeInterpreter current;
}
then it works as expected.
Johannes
More information about the antlr-interest
mailing list