Пример #1
0
 private bool IsOperatorableNode(BaseFormulaNode node)
 {
     return(node is NumberNode ||
            node is VariableNode ||
            node is WordNode ||
            node is FunctionNode ||
            node is WordListNode ||
            node is NumberListNode);
 }
Пример #2
0
 private bool IsCloseBracket(BaseFormulaNode node)
 {
     return(node is BracketNode bracketNode && bracketNode.Bracket == Bracket.Close);
 }
Пример #3
0
 private bool IsOpenBracket(BaseFormulaNode node)
 {
     return(node is BracketNode bracketNode && bracketNode.Bracket == Bracket.Open);
 }