Class SimpleExpressionParser

java.lang.Object
com.inductiveautomation.ignition.common.expressions.parsing.SimpleExpressionParser
All Implemented Interfaces:
Parser

public class SimpleExpressionParser extends 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.
  • Constructor Details

  • Method Details

    • containsMathematicalExpression

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

      public Expression parse(String expr, ExpressionParseContext binder)
      Specified by:
      parse in interface Parser