コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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, unit> xs = default(Tuples.Tuple <int, unit>);
                int y = default(int);
                if (!(__arg0 is __opComma <int, Tuples.Tuple <int, unit> >))
                {
                    goto default;
                }
                __opComma <int, Tuples.Tuple <int, unit> > __tmp0 = (__opComma <int, Tuples.Tuple <int, unit> >)__arg0;
                x  = __tmp0.__arg0;
                xs = __tmp0.__arg1;

                Getter0.get __tmp1 = new Getter0.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;
            }
        }