C# Class BitOrchestra.Parser._OpTree

Represents a tree of operators and terms such that operators follow rules of precedence and associativity.
Show file Open project: dzamkov/Bit-Orchestra

Public Properties

Property Type Description
Left _OpTree
Operator Operator
Right _OpTree
Term Expression

Public Methods

Method Description
Combine ( _OpTree Left, Operator Operator, Expression Right ) : _OpTree

Combines an optree with a term using the given operator.

_OpTree ( Expression Term ) : System
_OpTree ( Operator Operator, _OpTree Left, _OpTree Right ) : System

Method Details

Combine() public static method

Combines an optree with a term using the given operator.
public static Combine ( _OpTree Left, Operator Operator, Expression Right ) : _OpTree
Left _OpTree
Operator Operator
Right Expression
return _OpTree

_OpTree() public method

public _OpTree ( Expression Term ) : System
Term Expression
return System

_OpTree() public method

public _OpTree ( Operator Operator, _OpTree Left, _OpTree Right ) : System
Operator Operator
Left _OpTree
Right _OpTree
return System

Property Details

Left public property

The left child optree of the optree, if applicable.
public _OpTree Left
return _OpTree

Operator public property

The operator of this optree, if applicable.
public Operator,BitOrchestra Operator
return Operator

Right public property

The right child optree of the optree, if applicable.
public _OpTree Right
return _OpTree

Term public property

The value of this term, if applicable.
public Expression,BitOrchestra Term
return Expression