コード例 #1
0
ファイル: SyntaxFunc.cs プロジェクト: guojianbin/EasyScript
        public SyntaxFunc()
        {
            var item = new SyntaxNotifier(OnParse);

            item.Add(new SyntaxMatchBody(new[] { typeof(CharterFunc), typeof(IExpressionName), typeof(ExpressionParens), typeof(ExpressionBraces) }));
            Add(item);

            var item2 = new SyntaxNotifier(OnParse2);

            item2.Add(new SyntaxMatchBody(new[] { typeof(CharterFunc), typeof(ExpressionParens), typeof(ExpressionBraces) }));
            Add(item2);
        }
コード例 #2
0
        public SyntaxLambda()
        {
            var item = new SyntaxNotifier(OnParse);

            item.Add(new SyntaxMatchBody(new[] { typeof(IExpressionName), typeof(CharterEQ), typeof(CharterGT), typeof(IExpressionRight) }));
            Add(item);

            var item2 = new SyntaxNotifier(OnParse2);

            item2.Add(new SyntaxMatchBody(new[] { typeof(ExpressionParens), typeof(CharterEQ), typeof(CharterGT), typeof(IExpressionRight) }));
            Add(item2);
        }
コード例 #3
0
ファイル: SyntaxReturn.cs プロジェクト: guojianbin/EasyScript
        public SyntaxReturn()
        {
            var item = new SyntaxNotifier(OnParse);

            item.Add(new SyntaxMatchBody(new[] { typeof(CharterRet), typeof(IExpressionRight) }));
            Add(item);

            var item2 = new SyntaxNotifier(OnParse2);

            item2.Add(new SyntaxMatchBody(new[] { typeof(CharterRet) }));
            Add(item2);
        }
コード例 #4
0
        public SyntaxForArgs()
        {
            var item = new SyntaxNotifier(OnParse);

            item.Add(new SyntaxMatchCount(5));
            item.Add(new SyntaxMatchBody(new[] { typeof(ExpressionBind), typeof(CharterCMA), typeof(IExpressionRight), typeof(CharterCMA), typeof(IExpressionRight) }));
            Add(item);

            var item2 = new SyntaxNotifier(OnParse2);

            item2.Add(new SyntaxMatchCount(3));
            item2.Add(new SyntaxMatchBody(new[] { typeof(ExpressionBind), typeof(CharterCMA), typeof(IExpressionRight) }));
            Add(item2);
        }