Class SyntaxPriorities

java.lang.Object
codeanalysis.syntax.SyntaxPriorities

public class SyntaxPriorities extends Object
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 Details

    • SyntaxPriorities

      public SyntaxPriorities()
  • Method Details

    • getUnaryOperatorPriority

      public static int getUnaryOperatorPriority(SyntaxType type)
      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

      public static int getBinaryOperatorPriority(SyntaxType type)
      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.