Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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;
        }