Click or drag to resize

ExpressionParser class

A parser for general expressions. Creates an equivalent tree from a text expression. Must be derived; the syntax must then be defined in the derivation. BooleanParserArithmeticParserLogicalParser
Inheritance hierarchy
SystemObject
  NetEti.ExpressionParserExpressionParser
    NetEti.ExpressionParserArithmeticParser
    NetEti.ExpressionParserBooleanParser

Namespace: NetEti.ExpressionParser
Assembly: NetEti.ExpressionParser (in NetEti.ExpressionParser.dll) Version: 1.0.0+20609015c2da6e03a80f381a46b367814c82f34b
Syntax
public abstract class ExpressionParser

The ExpressionParser Type exposes the following members.

Constructors
 NameDescription of the
Protected MethodExpressionParserinitializes a new instance of the ExpressionParser class
Back to the top
Properties
 NameDescription of the
Public PropertyExpressionString The originally transferred text expression.
Public PropertyMetaRules List of high-order operators with assigned sub-expressions. BooleanParser
Public PropertyOperatorPriority List of operators with their relative priorities. BooleanParser
Public PropertyOperators List of one or two possible operands with each an assigned operator. BooleanParser
Public PropertyToken List of several possible text tokens, each with an assigned internal key. BooleanParser
Back to the top
Methods
 NameDescription of the
Public MethodGetOperands Parses and returns all names that do not belong to the operators defined for this parser type.
Public MethodParse Converts a text expression using predefined rules into an equivalent syntax tree.
Back to the top
Remarks
File: ExpressionParser.cs Author: Erik Nagel, NetEti 10/2012 Erik Nagel: created 03/2013 Erik Nagel: LogicalParser created (Boolean plus comparison operators); Fixed an error when evaluating multi-value expressions. 06/2013 Erik Nagel: Endless loop intercepted for single variable without operator. 2016-07-09 Erik Nagel: User variables containing "_" are now also recognised, correctly processed.
See also