Beispiel #1
0
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >();
            __res.Value    = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> >);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <float, float> x = __arg0;
                Tuple <Tuple <float, float>, Unit> xs = __arg1;
                __opComma <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > __tmp0 = new __opComma <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> >();
                __tmp0.__arg0  = x;
                __tmp0.__arg1  = xs;
                __res.HasValue = true;
                __res.Value    = __tmp0;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuples.Tuple <int, Tuples.Tuple <int, unit> > >();
            __res.Value    = default(Tuples.Tuple <int, Tuples.Tuple <int, unit> >);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                int x = default(int);
                Tuples.Tuple <int, unit> xs = default(Tuples.Tuple <int, unit>);
                x  = __arg0;
                xs = __arg1;
                __opComma <int, Tuples.Tuple <int, unit> > __tmp0 = new __opComma <int, Tuples.Tuple <int, unit> >();
                __tmp0.__arg0  = x;
                __tmp0.__arg1  = xs;
                __res.HasValue = true;
                __res.Value    = __tmp0;
                break;
            }

            default: break;
            }
        }
Beispiel #3
0
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <float, float> >();
            __res.Value    = default(Tuple <float, float>);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <float, float> x = default(Tuple <float, float>);
                Unit xs = default(Unit);
                if (!(__arg0 is __opComma <Tuple <float, float>, Unit>))
                {
                    goto default;
                }
                __opComma <Tuple <float, float>, Unit> __tmp0 = (__opComma <Tuple <float, float>, Unit>)__arg0;
                x              = __tmp0.__arg0;
                xs             = __tmp0.__arg1;
                __res.HasValue = true;
                __res.Value    = x;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <b>();
            __res.Value    = default(b);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                a x = default(a);
                b y = default(b);
                if (!(__arg0 is __opComma <a, b>))
                {
                    goto default;
                }
                __opComma <a, b> __tmp0 = (__opComma <a, b>)__arg0;
                x = __tmp0.__arg0;
                y = __tmp0.__arg1;
                __res.HasValue = true;
                __res.Value    = y;
                break;
            }

            default: break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <int>();
            __res.Value    = default(int);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                int  x  = default(int);
                unit xs = default(unit);
                if (!(__arg0 is __opComma <int, unit>))
                {
                    goto default;
                }
                __opComma <int, unit> __tmp0 = (__opComma <int, unit>)__arg0;
                x              = __tmp0.__arg0;
                xs             = __tmp0.__arg1;
                __res.HasValue = true;
                __res.Value    = x;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuples.Tuple <int, Tuples.Tuple <int, unit> > >();
            __res.Value    = default(Tuples.Tuple <int, Tuples.Tuple <int, unit> >);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuples.Tuple <int, Tuples.Tuple <int, unit> > res = default(Tuples.Tuple <int, Tuples.Tuple <int, unit> >);
                RecordField2.cons __tmp0 = new RecordField2.cons();
                __tmp0.__arg0 = 1;
                __opComma <int, unit> __tmp1 = new __opComma <int, unit>();
                __tmp1.__arg0 = 5;
                __tmp1.__arg1 = new unit();
                __tmp0.__arg1 = __tmp1;
                __tmp0.Run();
                if (!(__tmp0.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuples.Tuple <int, Tuples.Tuple <int, unit> > > __tmp2 = __tmp0.__res;
                res            = __tmp2.Value;
                __res.HasValue = true;
                __res.Value    = res;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <float>();
            __res.Value    = default(float);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                float v  = default(float);
                float dt = default(float);
                v              = __arg0;
                dt             = __arg1;
                __res.HasValue = true;
                __res.Value    = v;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >();
            __res.Value    = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > r = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                float dt = default(float);
                r              = __arg0;
                dt             = __arg1;
                __res.HasValue = true;
                __res.Value    = r;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >();
            __res.Value    = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > rec           = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > rec1          = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > updatedRecord = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                float dt = default(float);
                Tuple <float, float> v = default(Tuple <float, float>);
                rec = __arg0;
                dt  = __arg1;
                FieldUpdater0.update __tmp0 = new FieldUpdater0.update();
                __tmp0.__arg0 = rec;
                __tmp0.__arg1 = dt;
                __tmp0.Run();
                if (!(__tmp0.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <float, float> > __tmp1 = __tmp0.__res;
                v = __tmp1.Value;
                SetField0.set __tmp2 = new SetField0.set();
                __tmp2.__arg0 = rec;
                __tmp2.__arg1 = v;
                __tmp2.Run();
                if (!(__tmp2.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > __tmp3 = __tmp2.__res;
                rec1 = __tmp3.Value;
                RecordUpdater4.update __tmp4 = new RecordUpdater4.update();
                __tmp4.__arg0 = rec1;
                __tmp4.__arg1 = dt;
                __tmp4.Run();
                if (!(__tmp4.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > __tmp5 = __tmp4.__res;
                updatedRecord  = __tmp5.Value;
                __res.HasValue = true;
                __res.Value    = updatedRecord;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <List <a> >();
            __res.Value    = default(List <a>);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                List <a> ys = default(List <a>);
                if (!(__arg0 is nil <a>))
                {
                    goto case 1;
                }
                ys             = __arg1;
                __res.HasValue = true;
                __res.Value    = ys;
                break;
            }

            case 1:
            {
                a        x  = default(a);
                List <a> xs = default(List <a>);
                List <a> ys = default(List <a>);
                List <a> zs = default(List <a>);
                if (!(__arg0 is __opColon__opColon <a>))
                {
                    goto default;
                }
                __opColon__opColon <a> __tmp0 = (__opColon__opColon <a>)__arg0;
                x  = __tmp0.__arg0;
                xs = __tmp0.__arg1;
                ys = __arg1;
                append <a> __tmp1 = new append <a>();
                __tmp1.__arg0 = xs;
                __tmp1.__arg1 = ys;
                __tmp1.Run();
                if (!(__tmp1.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <List <a> > __tmp2 = __tmp1.__res;
                zs = __tmp2.Value;
                __opColon__opColon <a> __tmp3 = new __opColon__opColon <a>();
                __tmp3.__arg0  = x;
                __tmp3.__arg1  = zs;
                __res.HasValue = true;
                __res.Value    = __tmp3;
                break;
            }

            default: break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <float, float> >();
            __res.Value    = default(Tuple <float, float>);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                float x   = default(float);
                float xs  = default(float);
                float dt  = default(float);
                float x1  = default(float);
                float xs1 = default(float);
                if (!(__arg0 is __opComma <float, float>))
                {
                    goto default;
                }
                __opComma <float, float> __tmp0 = (__opComma <float, float>)__arg0;
                x  = __tmp0.__arg0;
                xs = __tmp0.__arg1;
                dt = __arg1;
                ElementUpdater0.update __tmp1 = new ElementUpdater0.update();
                __tmp1.__arg0 = x;
                __tmp1.__arg1 = dt;
                __tmp1.Run();
                if (!(__tmp1.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <float> __tmp2 = __tmp1.__res;
                x1 = __tmp2.Value;
                ElementUpdater0.update __tmp3 = new ElementUpdater0.update();
                __tmp3.__arg0 = xs;
                __tmp3.__arg1 = dt;
                __tmp3.Run();
                if (!(__tmp3.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <float> __tmp4 = __tmp3.__res;
                xs1 = __tmp4.Value;
                __opComma <float, float> __tmp5 = new __opComma <float, float>();
                __tmp5.__arg0  = x1;
                __tmp5.__arg1  = xs1;
                __res.HasValue = true;
                __res.Value    = __tmp5;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <int>();
            __res.Value    = default(int);
            __res.HasValue = false;
            switch (__ruleIndex)
            {
            case 0:
            {
                if (!(__arg0 is nil <a>))
                {
                    goto case 1;
                }

                nil <a> __tmp0 = (nil <a>)__arg0;
                __res.Value    = 0;
                __res.HasValue = true;
                break;
            }

            case 1:
            {
                a        x  = default(a);
                List <a> xs = default(List <a>);
                int      y  = default(int);

                if (!(__arg0 is __opColon__opColon <a>))
                {
                    goto default;
                }

                __opColon__opColon <a> __tmp0 = (__opColon__opColon <a>)__arg0;
                x  = __tmp0.__arg0;
                xs = __tmp0.__arg1;
                length <a> __tmp2 = new length <a>();
                __tmp2.__arg0 = xs;
                __tmp2.Run();

                if (!__tmp2.__res.HasValue)
                {
                    goto default;
                }

                __MetaCnvResult <int> __tmp3 = __tmp2.__res;
                y = __tmp3.Value;
                __res.HasValue = true;
                __res.Value    = 1 + y;
                break;
            }

            default: break;
            }
        }
Beispiel #13
0
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >();
            __res.Value    = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <float, float> x = default(Tuple <float, float>);
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > xs = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> >);
                Tuple <float, float> v = default(Tuple <float, float>);
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > xs1 = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> >);

                if (!(__arg0 is __opComma <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >))
                {
                    goto default;
                }
                __opComma <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > __tmp0 = (__opComma <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >)__arg0;
                x  = __tmp0.__arg0;
                xs = __tmp0.__arg1;
                v  = __arg1;
                SetField4.set __tmp1 = new SetField4.set();
                __tmp1.__arg0 = xs;
                __tmp1.__arg1 = v;
                __tmp1.Run();
                if (!(__tmp1.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > __tmp2 = __tmp1.__res;
                xs1 = __tmp2.Value;
                __opComma <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > __tmp3 = new __opComma <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >();
                __tmp3.__arg0  = x;
                __tmp3.__arg1  = xs1;
                __res.HasValue = true;
                __res.Value    = __tmp3;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <float, float> >();
            __res.Value    = default(Tuple <float, float>);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > rec = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                float dt = default(float);
                Tuple <float, float> field  = default(Tuple <float, float>);
                Tuple <float, float> field1 = default(Tuple <float, float>);
                rec = __arg0;
                dt  = __arg1;
                GetField5.get __tmp0 = new GetField5.get();
                __tmp0.__arg0 = rec;
                __tmp0.Run();
                if (!(__tmp0.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <float, float> > __tmp1 = __tmp0.__res;
                field = __tmp1.Value;
                ElementUpdater1.update __tmp2 = new ElementUpdater1.update();
                __tmp2.__arg0 = field;
                __tmp2.__arg1 = dt;
                __tmp2.Run();
                if (!(__tmp2.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <float, float> > __tmp3 = __tmp2.__res;
                field1         = __tmp3.Value;
                __res.HasValue = true;
                __res.Value    = field1;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <int>();
            __res.Value    = default(int);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                int x = default(int);
                Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, unit> > > > > > > > > xs = default(Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, unit> > > > > > > > >);
                int y = default(int);
                if (!(__arg0 is __opComma <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, unit> > > > > > > > > >))
                {
                    goto default;
                }
                __opComma <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, unit> > > > > > > > > > __tmp0 = (__opComma <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, Tuples.Tuple <int, unit> > > > > > > > > >)__arg0;
                x  = __tmp0.__arg0;
                xs = __tmp0.__arg1;

                Getter8.get __tmp1 = new Getter8.get();
                __tmp1.__arg0 = xs;
                __tmp1.Run();
                if (!(__tmp1.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <int> __tmp2 = __tmp1.__res;
                y = __tmp2.Value;
                __res.HasValue = true;
                __res.Value    = y;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <unit>();
            __res.Value    = default(unit);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                unit __tmp0 = new unit();
                __res.HasValue = true;
                __res.Value    = __tmp0;
                break;
            }

            default: break;
            }
        }
Beispiel #17
0
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >();
            __res.Value    = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
            __res.HasValue = false;
            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > entity  = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > entity1 = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                float dt = default(float);
                entity = __arg0;
                dt     = __arg1;
                RecordUpdater5.update __tmp0 = new RecordUpdater5.update();
                __tmp0.__arg0 = entity;
                __tmp0.__arg1 = dt;
                __tmp0.Run();
                if (!(__tmp0.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > __tmp1 = __tmp0.__res;
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > __tmp2 = __tmp1.Value;
                entity1        = __tmp2;
                __res.HasValue = true;
                __res.Value    = entity1;
                break;
            }

            default:
                break;
            }
        }
Beispiel #18
0
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > >();
            __res.Value    = default(List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                float dt = default(float);
                if (!(__arg0 is nil <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >))
                {
                    goto case 1;
                }
                List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > __tmp0 = (nil <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >)__arg0;
                nil <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >  __tmp1 = new nil <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >();
                dt             = __arg1;
                __res.HasValue = true;
                __res.Value    = __tmp1;
                break;
            }

            case 1:
            {
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >         x  = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > xs = default(List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >);
                float dt = default(float);
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >         x1  = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > xs1 = default(List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >);
                if (!(__arg0 is __opColonColon <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >))
                {
                    goto default;
                }
                __opColonColon <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > __tmp0 = (__opColonColon <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >)__arg0;
                x  = __tmp0.__arg0;
                xs = __tmp0.__arg1;
                dt = __arg1;
                ElementUpdater2.update __tmp1 = new ElementUpdater2.update();
                __tmp1.__arg0 = x;
                __tmp1.__arg1 = dt;
                __tmp1.Run();
                if (!(__tmp1.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > __tmp2 = __tmp1.__res;
                x1 = __tmp2.Value;
                update __tmp3 = new update();
                __tmp3.__arg0 = xs;
                __tmp3.__arg1 = dt;
                __tmp3.Run();
                if (!(__tmp3.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <List <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > > __tmp4 = __tmp3.__res;
                xs1 = __tmp4.Value;
                __opColonColon <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > > __tmp5 = new __opColonColon <Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > >();
                __tmp5.__arg0  = x1;
                __tmp5.__arg1  = xs1;
                __res.HasValue = true;
                __res.Value    = __tmp5;
                break;
            }

            default:
                break;
            }
        }
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <Tuple <float, float> >();
            __res.Value    = default(Tuple <float, float>);
            __res.HasValue = false;

            switch (__ruleIndex)
            {
            case 0:
            {
                Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > > body = default(Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Tuple <Tuple <float, float>, Unit> > >);
                float dt  = default(float);
                float xv  = default(float);
                float xv1 = default(float);
                float yv  = default(float);
                float yv1 = default(float);
                float xa  = default(float);
                float ya  = default(float);
                body = __arg0;
                dt   = __arg1;
                GetField3.get __tmp0 = new GetField3.get();
                __tmp0.__arg0 = body;
                __tmp0.Run();
                if (!(__tmp0.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <float, float> > __tmp1 = __tmp0.__res;
                Tuple <float, float> __tmp2 = __tmp1.Value;
                if (!(__tmp2 is __opComma <float, float>))
                {
                    goto default;
                }
                __opComma <float, float> __tmp3 = (__opComma <float, float>)__tmp2;
                xv = __tmp3.__arg0;
                yv = __tmp3.__arg1;
                GetField5.get __tmp4 = new GetField5.get();
                __tmp4.__arg0 = body;
                __tmp4.Run();
                if (!(__tmp4.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <Tuple <float, float> > __tmp5 = __tmp4.__res;
                Tuple <float, float> __tmp6 = __tmp5.Value;
                if (!(__tmp6 is __opComma <float, float>))
                {
                    goto default;
                }
                __opComma <float, float> __tmp7 = (__opComma <float, float>)__tmp6;
                xa  = __tmp7.__arg0;
                ya  = __tmp7.__arg1;
                xv1 = xv + xa * dt;
                yv1 = yv + ya * dt;
                __opComma <float, float> __tmp8 = new __opComma <float, float>();
                __tmp8.__arg0  = xv1;
                __tmp8.__arg1  = yv1;
                __res.HasValue = true;
                __res.Value    = __tmp8;
                break;
            }

            default:
                break;
            }
        }
Beispiel #20
0
        public void Run()
        {
            int __ruleIndex = 0;

            __res          = new __MetaCnvResult <GameState>();
            __res.HasValue = false;
            __res.Value    = default(GameState);


            switch (__ruleIndex)
            {
            case 0:
            {
                float dt = default(float);
                dt = __arg0;
                __opDollarVector2 p = new __opDollarVector2();
                p.__arg0 = 1.0f;
                p.__arg1 = 1.0f;
                __opDollarVector2 vx = new __opDollarVector2();
                vx.__arg0 = 1.0f;
                vx.__arg1 = 0.0f;
                __opDollarVector2 vx1 = new __opDollarVector2();
                vx1.__arg0 = -1.0f;
                vx1.__arg1 = 0.0f;
                __opDollarVector2 vy = new __opDollarVector2();
                vy.__arg0 = 0.0f;
                vy.__arg1 = 1.0f;
                when       s1     = new when();
                __opDollar __tmp0 = new __opDollar();
                __tmp0.__arg0 = "Position";
                vectorx __tmp1 = new vectorx();
                __tmp1.__arg0 = __tmp0;
                lt __tmp2 = new lt();
                __tmp2.__arg0 = __tmp1;
                __opDollarf __tmp3 = new __opDollarf();
                __tmp3.__arg0 = 30.0f;
                __tmp2.__arg1 = __tmp3;
                s1.__arg0     = __tmp2;
                yield s2 = new yield();
                __opColon__opColon <Expr> __tmp4 = new __opColon__opColon <Expr>();
                __tmp4.__arg0 = vx;
                __tmp4.__arg1 = new nil <Expr>();
                s2.__arg0     = __tmp4;
                when       s3     = new when();
                __opDollar __tmp5 = new __opDollar();
                __tmp5.__arg0 = "Position";
                vectorx __tmp6 = new vectorx();
                __tmp6.__arg0 = __tmp0;
                gt __tmp7 = new gt();
                __tmp7.__arg0 = __tmp1;
                __opDollarf __tmp8 = new __opDollarf();
                __tmp8.__arg0 = 0.0f;
                __tmp7.__arg1 = __tmp8;
                s3.__arg0     = __tmp7;
                yield s4 = new yield();
                __opColon__opColon <Expr> __tmp9 = new __opColon__opColon <Expr>();
                __tmp9.__arg0 = vx1;
                __tmp9.__arg1 = new nil <Expr>();
                s4.__arg0     = __tmp9;
                yield s5 = new yield();
                __opColon__opColon <Expr> __tmp10 = new __opColon__opColon <Expr>();
                __opPlus   __tmp11 = new __opPlus();
                __opDollar __tmp12 = new __opDollar();
                __opDollar __tmp13 = new __opDollar();
                __tmp12.__arg0 = "Position";
                __tmp13.__arg0 = "Velocity";
                __tmp11.__arg0 = __tmp12;
                __tmp11.__arg1 = __tmp13;
                __tmp10.__arg0 = __tmp11;
                __tmp10.__arg1 = new nil <Expr>();
                s5.__arg0      = __tmp10;
                ImmutableDictionary <string, Value> dict1 = ImmutableDictionary <string, Value> .Empty.Add("Position", p);

                ImmutableDictionary <string, Value> dict = dict1.Add("Velocity", vx);

                //r1
                __opColon__opColon <string> __r1tmp0 = new __opColon__opColon <string>();
                __r1tmp0.__arg0 = "Velocity";
                __r1tmp0.__arg1 = new nil <string>();
                __opSemicolon __r1tmp1 = new __opSemicolon();
                __r1tmp1.__arg0 = s1;
                __r1tmp1.__arg1 = s2;
                rule r1 = new rule();
                r1.__arg0 = __r1tmp0;
                r1.__arg1 = __r1tmp1;
                r1.__arg2 = new nop();
                r1.__arg3 = ImmutableDictionary <string, Value> .Empty;
                r1.__arg4 = dt;

                //r2
                __opColon__opColon <string> __r2tmp0 = new __opColon__opColon <string>();
                __r2tmp0.__arg0 = "Velocity";
                __r2tmp0.__arg1 = new nil <string>();
                __opSemicolon __r2tmp1 = new __opSemicolon();
                __r2tmp1.__arg0 = s3;
                __r2tmp1.__arg1 = s4;
                rule r2 = new rule();
                r2.__arg0 = __r2tmp0;
                r2.__arg1 = __r2tmp1;
                r2.__arg2 = new nop();
                r2.__arg3 = ImmutableDictionary <string, Value> .Empty;
                r2.__arg4 = dt;

                //r3
                __opColon__opColon <string> __r3tmp0 = new __opColon__opColon <string>();
                __r3tmp0.__arg0 = "Position";
                __r3tmp0.__arg1 = new nil <string>();
                rule r3 = new rule();
                r3.__arg0 = __r3tmp0;
                r3.__arg1 = s5;
                r3.__arg2 = new nop();
                r3.__arg3 = ImmutableDictionary <string, Value> .Empty;
                r3.__arg4 = dt;

                tick __tick = new tick();
                __opColon__opColon <Rule> __ticktmp0 = new __opColon__opColon <Rule>();
                __opColon__opColon <Rule> __ticktmp1 = new __opColon__opColon <Rule>();
                __opColon__opColon <Rule> __ticktmp2 = new __opColon__opColon <Rule>();
                __ticktmp2.__arg0 = r3;
                __ticktmp2.__arg1 = new nil <Rule>();
                __ticktmp1.__arg0 = r2;
                __ticktmp1.__arg1 = __ticktmp2;
                __ticktmp0.__arg0 = r3;               //r1;
                __ticktmp0.__arg1 = new nil <Rule>(); //__ticktmp1;

                __opColon__opColon <Rule> __ticktmp3 = new __opColon__opColon <Rule>();
                __opColon__opColon <Rule> __ticktmp4 = new __opColon__opColon <Rule>();
                __opColon__opColon <Rule> __ticktmp5 = new __opColon__opColon <Rule>();
                __ticktmp5.__arg0 = r3;
                __ticktmp5.__arg1 = new nil <Rule>();
                __ticktmp4.__arg0 = r2;
                __ticktmp4.__arg1 = __ticktmp5;
                __ticktmp3.__arg0 = r3;               //r1;
                __ticktmp3.__arg1 = new nil <Rule>(); //__ticktmp4;

                __tick.__arg0 = __ticktmp0;
                __tick.__arg1 = __ticktmp3;
                __tick.__arg2 = dict;
                __tick.__arg3 = ImmutableDictionary <string, Value> .Empty;
                __tick.__arg4 = dt;
                __tick.Run();

                if (!(__tick.__res.HasValue))
                {
                    goto default;
                }
                __MetaCnvResult <GameState> __restmp0 = __tick.__res;
                GameState __restmp1 = __restmp0.Value;
                __res.HasValue = true;
                __res.Value    = __restmp1;
                break;
            }

            default: break;
            }
        }