예제 #1
0
        public static Value StaticRun()
        {
            {
#line 17 ".\Content\Boolean expressions\transform.mc"

#line 17 ".\Content\Boolean expressions\transform.mc"
                var tmp_1 = eval.StaticRun0_(_opBitwiseOr.Create(FALSE.Create(), _opBitwiseAnd.Create(TRUE.Create(), _opBang.Create(FALSE.Create()))));
#line 17 ".\Content\Boolean expressions\transform.mc"

                var tmp_0 = tmp_1;

                var res = tmp_0;
#line 17 ".\Content\Boolean expressions\transform.mc"
                var result = res;
#line 17 ".\Content\Boolean expressions\transform.mc"
                return(result);
            }


            throw new System.Exception("Error evaluating: run. No result returned.");
        }
예제 #2
0
        public static Value StaticRun0_(Expr P1)
        {
            {
#line 21 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as TRUE;
#line 21 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
#line 21 ".\Content\Boolean expressions\transform.mc"
                    var result = TRUE.Create();
#line 21 ".\Content\Boolean expressions\transform.mc"
                    return(result);
                }
            }
            {
#line 24 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as FALSE;
#line 24 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
#line 24 ".\Content\Boolean expressions\transform.mc"
                    var result = FALSE.Create();
#line 24 ".\Content\Boolean expressions\transform.mc"
                    return(result);
                }
            }
            {
#line 28 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as _opBang;
#line 28 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
                    var a = tmp_0.P1;
#line 28 ".\Content\Boolean expressions\transform.mc"
                    var tmp_2 = eval.StaticRun0_(a);
#line 28 ".\Content\Boolean expressions\transform.mc"

                    var tmp_1 = tmp_2;

                    var tmp_3 = tmp_1 as TRUE;
#line 28 ".\Content\Boolean expressions\transform.mc"
                    if (tmp_3 != null)
                    {
#line 28 ".\Content\Boolean expressions\transform.mc"
                        var result = FALSE.Create();
#line 28 ".\Content\Boolean expressions\transform.mc"
                        return(result);
                    }
                }
            }
            {
#line 32 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as _opBang;
#line 32 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
                    var a = tmp_0.P1;
#line 32 ".\Content\Boolean expressions\transform.mc"
                    var tmp_2 = eval.StaticRun0_(a);
#line 32 ".\Content\Boolean expressions\transform.mc"

                    var tmp_1 = tmp_2;

                    var tmp_3 = tmp_1 as FALSE;
#line 32 ".\Content\Boolean expressions\transform.mc"
                    if (tmp_3 != null)
                    {
#line 32 ".\Content\Boolean expressions\transform.mc"
                        var result = TRUE.Create();
#line 32 ".\Content\Boolean expressions\transform.mc"
                        return(result);
                    }
                }
            }
            {
#line 37 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as _opBitwiseOr;
#line 37 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
                    var a = tmp_0.P1; var b = tmp_0.P2;
#line 37 ".\Content\Boolean expressions\transform.mc"
                    var tmp_2 = eval.StaticRun0_(a);
#line 37 ".\Content\Boolean expressions\transform.mc"

                    var tmp_1 = tmp_2;

                    var tmp_3 = tmp_1 as TRUE;
#line 37 ".\Content\Boolean expressions\transform.mc"
                    if (tmp_3 != null)
                    {
#line 37 ".\Content\Boolean expressions\transform.mc"
                        var result = TRUE.Create();
#line 37 ".\Content\Boolean expressions\transform.mc"
                        return(result);
                    }
                }
            }
            {
#line 41 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as _opBitwiseOr;
#line 41 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
                    var a = tmp_0.P1; var b = tmp_0.P2;
#line 41 ".\Content\Boolean expressions\transform.mc"
                    var tmp_2 = eval.StaticRun0_(a);
#line 41 ".\Content\Boolean expressions\transform.mc"

                    var tmp_1 = tmp_2;

                    var tmp_3 = tmp_1 as FALSE;
#line 41 ".\Content\Boolean expressions\transform.mc"
                    if (tmp_3 != null)
                    {
#line 41 ".\Content\Boolean expressions\transform.mc"
                        var tmp_5 = eval.StaticRun0_(b);
#line 41 ".\Content\Boolean expressions\transform.mc"

                        var tmp_4 = tmp_5;

                        var y = tmp_4;
#line 41 ".\Content\Boolean expressions\transform.mc"
                        var result = y;
#line 41 ".\Content\Boolean expressions\transform.mc"
                        return(result);
                    }
                }
            }
            {
#line 47 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as _opBitwiseAnd;
#line 47 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
                    var a = tmp_0.P1; var b = tmp_0.P2;
#line 47 ".\Content\Boolean expressions\transform.mc"
                    var tmp_2 = eval.StaticRun0_(a);
#line 47 ".\Content\Boolean expressions\transform.mc"

                    var tmp_1 = tmp_2;

                    var tmp_3 = tmp_1 as FALSE;
#line 47 ".\Content\Boolean expressions\transform.mc"
                    if (tmp_3 != null)
                    {
#line 47 ".\Content\Boolean expressions\transform.mc"
                        var result = FALSE.Create();
#line 47 ".\Content\Boolean expressions\transform.mc"
                        return(result);
                    }
                }
            }
            {
#line 51 ".\Content\Boolean expressions\transform.mc"
                var tmp_0 = P1 as _opBitwiseAnd;
#line 51 ".\Content\Boolean expressions\transform.mc"
                if (tmp_0 != null)
                {
                    var a = tmp_0.P1; var b = tmp_0.P2;
#line 51 ".\Content\Boolean expressions\transform.mc"
                    var tmp_2 = eval.StaticRun0_(a);
#line 51 ".\Content\Boolean expressions\transform.mc"

                    var tmp_1 = tmp_2;

                    var tmp_3 = tmp_1 as TRUE;
#line 51 ".\Content\Boolean expressions\transform.mc"
                    if (tmp_3 != null)
                    {
#line 51 ".\Content\Boolean expressions\transform.mc"
                        var tmp_5 = eval.StaticRun0_(b);
#line 51 ".\Content\Boolean expressions\transform.mc"

                        var tmp_4 = tmp_5;

                        var y = tmp_4;
#line 51 ".\Content\Boolean expressions\transform.mc"
                        var result = y;
#line 51 ".\Content\Boolean expressions\transform.mc"
                        return(result);
                    }
                }
            }

            var p = StaticRun(P1); return(p);

            throw new System.Exception("Error evaluating: eval. No result returned.");
        }