Beispiel #1
0
        public Rule_DatePart(Rule_Context pContext, NonterminalToken pToken, FunctionUtils.DateInterval interval)
            : base(pContext)
        {
            currentInterval = interval;

            this.ParameterList = AnalysisRule.GetFunctionParameters(pContext, pToken);
            /*
            NonterminalToken T = (NonterminalToken)pToken.Tokens[0];
            string type = pToken.Rule.Lhs.ToString();
            switch (type)
            {
                case "<FunctionParameterList>":
                    this.ParamList = new Rule_FunctionParameterList(pContext, T);
                    break;
                case "<FunctionCall>":
                    this.functionCall = new Rule_FunctionCall(pContext, T);
                    break;
                default:
                    break;
            }*/
        }