コード例 #1
0
ファイル: ExecPlugin.cs プロジェクト: GHLabs/SambaPOS-3
        /// <summary>
        /// Parses the day expression.
        /// Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
        /// </summary>
        /// <returns></returns>
        public override Expr Parse()
        {
            var expr = new ExecExpr(_funcMeta);
            base.ParseFunction(expr);

            if (expr.ParamListExpressions.Count == 0)
                throw _tokenIt.BuildSyntaxExpectedException("exec plugin requires at least 1 parameter");
            return expr;
        }
コード例 #2
0
        /// <summary>
        /// Parses the day expression.
        /// Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
        /// </summary>
        /// <returns></returns>
        public override Expr Parse()
        {
            var expr = new ExecExpr(_funcMeta);

            base.ParseFunction(expr);

            if (expr.ParamListExpressions.Count == 0)
            {
                throw _tokenIt.BuildSyntaxExpectedException("exec plugin requires at least 1 parameter");
            }
            return(expr);
        }