Package codeanalysis.syntax
Class SyntaxPriorities
java.lang.Object
codeanalysis.syntax.SyntaxPriorities
The SyntaxPriorities class provides methods to retrieve the priority of binary and unary operators in the syntax analysis process.
- Version:
- 1.0
- Author:
- Siyabend Urun
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intRetrieves the priority of a binary operator based on its syntax type.static intRetrieves the priority of a unary operator based on its syntax type.
-
Constructor Details
-
SyntaxPriorities
public SyntaxPriorities()
-
-
Method Details
-
getUnaryOperatorPriority
Retrieves the priority of a unary operator based on its syntax type.- Parameters:
type- The syntax type of the unary operator.- Returns:
- The priority of the unary operator.
-
getBinaryOperatorPriority
Retrieves the priority of a binary operator based on its syntax type.- Parameters:
type- The syntax type of the binary operator.- Returns:
- The priority of the binary operator.
-