Class RandomAnalyzer

    • Constructor Detail

      • RandomAnalyzer

        public RandomAnalyzer()
    • Method Detail

      • generateExpressionTree

        public ExpressionTreeNode generateExpressionTree​(Stack<Token> tokens)
        Generates the expression tree for the random() function by removing the random token and creating a Random node.
        Specified by:
        generateExpressionTree in interface SemanticAnalyzerInterface
        Parameters:
        tokens - in postfix order
        Returns:
        the root node for the expression represented by the top token