Class Token

    • Constructor Detail

      • Token

        public Token​(String description)
        Creates a token with the given description
        Parameters:
        description - the token's description
    • Method Detail

      • toString

        public String toString()
        Represents the token by its description
        Overrides:
        toString in class Object
        Returns:
        the token's description
      • isConstant

        public abstract boolean isConstant()
        Returns true if this token represents a constant, false otherwise
        Returns:
        true iff this Token represents a constant
      • isFunction

        public abstract boolean isFunction()
        Returns true if this token represents a function, false otherwise
        Returns:
        true iff this Token represents a function