示例#1
0
        public void Init()
        {
            this.vm = new Machine();

            this.int_t = this.vm.TypeSystem.GetIntType();
            this.char_t = this.vm.TypeSystem.GetCharType();
            this.double_t = this.vm.TypeSystem.GetDoubleType();
        }
示例#2
0
        public void Init()
        {
            this.machine = new Machine();

            this.int_t = this.machine.TypeSystem.GetIntType();
            this.char_t = this.machine.TypeSystem.GetCharType();
            this.double_t = this.machine.TypeSystem.GetDoubleType();

            this.machine.Execute( @"int x;" );
            this.machine.Execute( @"char ch;" );
            this.machine.Execute( @"double d;" );

            this.machine.Execute( @"int * ptrInt;" );
            this.machine.Execute( @"char * ptrChar;" );
            this.machine.Execute( @"double * ptrDouble;" );
        }