Actually i see no use of ruleModifier or modifier anywhere in any target templates Ter On Nov 28, 2010, at 1:40 PM, Terence Parr wrote:
> Are you sure this won't mess something else up? What template expr are you > using that messes up? You're referencing Rule.getRuleModifier() right? > > Ter > > On Nov 28, 2010, at 1:28 PM, Sam Harwell wrote: > >> Can you also update the modifier field as mentioned in the last paragraph >> (to an empty string instead of null)? >> >> Thanks, >> Sam > >>> The Java version of the tool does properly track the rule modifiers. >>> However, when the modifier isn't specified, the 'modifier' field in >>> Rule.java defaults to null. Due to the early out in >>> ASTExpr.getObjectProperty, a null value doesn't end up pulling the >>> default value from the map defined in my template. If you use an empty >>> string in Grammar.defineRule whenever the modifier argument is null, >>> it corrects the issue. >>> >>> Sam >> >> > > _______________________________________________ > antlr-dev mailing list > [email protected] > http://www.antlr.org/mailman/listinfo/antlr-dev _______________________________________________ antlr-dev mailing list [email protected] http://www.antlr.org/mailman/listinfo/antlr-dev
