Class SimpleExpressionParser
java.lang.Object
com.inductiveautomation.ignition.common.expressions.parsing.SimpleExpressionParser
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if the string contains any of the mathematical operators that would make this an expression according to this parser.parse(String expr, ExpressionParseContext binder) Parse the given string into anExpression.
-
Constructor Details
-
SimpleExpressionParser
-
-
Method Details
-
containsMathematicalExpression
Returns true if the string contains any of the mathematical operators that would make this an expression according to this parser. -
parse
Description copied from interface:ParserParse the given string into anExpression.- Specified by:
parsein interfaceParser- Parameters:
expr- the expression string to parsebinder- theExpressionParseContextto use during parsing- Returns:
- the parsed
Expression
-