private IExpression BuildFuncCallExpression(ParseTreeNode node) { var name = node.ChildNodes[1].FindTokenAndGetText(); var expression = new FuncCallExpression(name); foreach (var argument in node.ChildNodes[3].ChildNodes) { expression.AddArgument( BuildExpression(argument.ChildNodes[0])); } return(expression); }
private IExpression BuildFuncCallExpression(ParseTreeNode node) { var name = node.ChildNodes[1].FindTokenAndGetText(); var expression = new FuncCallExpression(name); foreach (var argument in node.ChildNodes[3].ChildNodes) { expression.AddArgument( BuildExpression(argument.ChildNodes[0])); } return expression; }