Package org.oristool.lello.parse
Enum TerminalKind
- All Implemented Interfaces:
Serializable
,Comparable<TerminalKind>
Represents the kind of a terminal symbol. The kind of a terminal symbol
influences the behavior (precedence, associativity, etc...) of the parser
when it encounters the symbol.
-
Enum Constant Summary
Enum ConstantDescriptionAn arithmetic binary operator which has the same precedence as the multiplication.A logic binary operator which has the same precedence as logical and.A logic binary operator which has the same precedence as logical or.An arithmetic binary operator which has the same precedence as the power.A relational binary operator such as==
or<=
.An arithmetic binary operator which has the same precedence as the addition.A closing bracket.An open bracket.A comma.A BOOLEAN constant.An INTEGER constant.Represents the constant nil.A REAL constant.A STRING constant.Indicates the end of an input.An identifier such as a variable name of function name.A prefixed arithmetic unary operator.A prefixed logic unary operator.A suffixed arithmetic unary operator.A suffixed logic unary operator.An unknown terminal symbol. -
Method Summary
Modifier and TypeMethodDescriptionstatic TerminalKind
Returns the enum constant of this type with the specified name.static TerminalKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
An unknown terminal symbol. -
EOF
Indicates the end of an input. -
CONSTANT_NIL
Represents the constant nil. -
CONSTANT_BOOLEAN
A BOOLEAN constant. -
CONSTANT_INTEGER
An INTEGER constant. -
CONSTANT_REAL
A REAL constant. -
CONSTANT_STRING
A STRING constant. -
IDENTIFIER
An identifier such as a variable name of function name. -
BIN_OP_LOGIC_TERMS
A logic binary operator which has the same precedence as logical or. -
BIN_OP_LOGIC_FACTORS
A logic binary operator which has the same precedence as logical and. -
PREFIX_OP_LOGIC
A prefixed logic unary operator. -
SUFFIX_OP_LOGIC
A suffixed logic unary operator. -
BIN_OP_RELS
A relational binary operator such as==
or<=
. -
BIN_OP_TERMS
An arithmetic binary operator which has the same precedence as the addition. -
BIN_OP_FACTORS
An arithmetic binary operator which has the same precedence as the multiplication. -
PREFIX_OP
A prefixed arithmetic unary operator. -
SUFFIX_OP
A suffixed arithmetic unary operator. -
BIN_OP_POWERS
An arithmetic binary operator which has the same precedence as the power. -
BRACKET_OPEN
An open bracket. -
BRACKET_CLOSE
A closing bracket. -
COMMA
A comma.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-