BitOrchestra.Parser._OpTree.Combine C# (CSharp) 메소드

Combine() 공개 정적인 메소드

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
리턴 _OpTree
            public static _OpTree Combine(_OpTree Left, Operator Operator, Expression Right)
            {
                if (Left.Operator == null || Left.Operator.Precedence >= Operator.Precedence)
                    return new _OpTree(Operator, Left, new _OpTree(Right));
                else
                    return new _OpTree(Left.Operator, Left.Left, Combine(Left.Right, Operator, Right));
            }
Parser._OpTree