Class SimpleExpressionParser

  • All Implemented Interfaces:
    Parser

    public class SimpleExpressionParser
    extends java.lang.Object
    implements Parser
    Simple recursive descent parser for simple arithmetic expressions. Scannerless parsing. Generates an AST (using Expression instances) from the given input if part of language.
    • Method Detail

      • containsMathematicalExpression

        public static boolean containsMathematicalExpression​(java.lang.String value)
        Returns true if the string contains any of the mathematical operators that would make this an expression according to this parser.