public enum Associativity extends Enum<Associativity>
Usually the associativity with higer precedence is picked for a rule @see Rule
For conflict resolution:
if shift-reduce conflict
left associativity implies reduce
right associativity implies shift
non assoc implies error| Modifier and Type | Method and Description |
|---|---|
String |
displayName() |
static Associativity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Associativity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Associativity NONE
public static final Associativity LEFT
public static final Associativity RIGHT
public static final Associativity BINARY
public static Associativity[] values()
for (Associativity c : Associativity.values()) System.out.println(c);
public static Associativity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String displayName()
Copyright © 2017. All rights reserved.