forked from jasder/antlr
Deprecate ALL_OPS_NEED_SAME_ASSOC (fixes #652)
This commit is contained in:
parent
7f577d9209
commit
4422e0ff12
|
@ -137,7 +137,7 @@ public class LeftRecursiveRuleAnalyzer extends LeftRecursiveRuleWalker {
|
|||
}
|
||||
|
||||
if ( altAssociativity.get(alt)!=null && altAssociativity.get(alt)!=assoc ) {
|
||||
tool.errMgr.toolError(ErrorType.ALL_OPS_NEED_SAME_ASSOC, alt);
|
||||
tool.errMgr.toolError(ErrorType.INTERNAL_ERROR, "all operators of alt " + alt + " of left-recursive rule must have same associativity");
|
||||
}
|
||||
altAssociativity.put(alt, assoc);
|
||||
|
||||
|
|
|
@ -429,6 +429,8 @@ public enum ErrorType {
|
|||
* <p>
|
||||
* all operators of alt <em>alt</em> of left-recursive rule must have same
|
||||
* associativity</p>
|
||||
*
|
||||
* @deprecated This warning is no longer applicable with the current syntax for specifying associativity.
|
||||
*/
|
||||
ALL_OPS_NEED_SAME_ASSOC(118, "all operators of alt <arg> of left-recursive rule must have same associativity", ErrorSeverity.WARNING),
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue