
Hi,
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
Peter



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.



Hi,
thanks for the very quick answer.
I will be back if i have some more problems.
Thanks

