Aggregates and other b Functions

Oct 22, 2013 at 6:36 PM
i start with working on a grammer Extension for ExpressionEvaluatorGrammar that can handle Aggreagtes (sum,avg....) and other (Today(), DateAdd(2) ) Functions and Need much help.

what i have
var MyFunctionSection = new NonTerminal("FunctionCall",typeof(FunctionNode));

MyFunctionSection.Rule = "sum" + PreferShiftHere() + "(" + ArgList + ")";

is there any advice to go further.
Is there any idea about a generic AstNode for theses functions.

Thanks in advance
Oct 22, 2013 at 6:47 PM
Look at expression evaluator and a sample where it imports functions from System.Math and System.Environment classes. You just can do the same - create your own static class with extensions and 'import' them into evaluator.
Oct 22, 2013 at 7:44 PM
thanks for the very quick answer.

I will be back if i have some more problems.