In org.antlr.analysis.DFAState in getGatedPredicatesInNFAConfigurations, line 
716 and following, the code reads
"acceptState || !configuration.semanticContext.isSyntacticPredicate()"

But the comment right below talks about knowing "it's an accept AND not a syn 
pred," and also that "we only want to add syn preds if it's an accept state" 
(emphasis added).

So, is the comment out of date, or should the if statement read "acceptState && 
..."?
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to