Inheritance: AtomicExpression
 private void BuildFunctionExpression(IEnumerable<Token> tokens, Expression parent, string funcName)
 {
     if (parent == null)
     {
         _graph.Add(new FunctionExpression(funcName, _parsingContext));
         BuildUp(tokens, _graph.Current);
     }
     else
     {
         var func = new FunctionExpression(funcName, _parsingContext);
         parent.AddChild(func);
         BuildUp(tokens, func);
     }
 }
Beispiel #2
0
 private void BuildFunctionExpression(IEnumerable <Token> tokens, Expression parent, string funcName)
 {
     if (parent == null)
     {
         _graph.Add(new FunctionExpression(funcName, _parsingContext));
         BuildUp(tokens, _graph.Current);
     }
     else
     {
         var func = new FunctionExpression(funcName, _parsingContext);
         parent.AddChild(func);
         BuildUp(tokens, func);
     }
 }