10 #include "InputStream.h"
14 int main(int argc, char *argv[])
16 // vm::UKVirtualMachine vm;
17 // std::vector<smart_ptr<vm::IOperand> > vec;
19 // vec.push_back(smart_ptr<vm::IOperand>(new vm::PushOp(vm::data(1))));
20 // vec.push_back(smart_ptr<vm::IOperand>(new vm::PushOp(vm::data(2))));
21 // vec.push_back(smart_ptr<vm::IOperand>(new vm::AddOp()));
22 // vec.push_back(smart_ptr<vm::IOperand>(new vm::PushOp(vm::data(4))));
23 // vec.push_back(smart_ptr<vm::IOperand>(new vm::MulOp()));
24 // vec.push_back(smart_ptr<vm::IOperand>(new vm::PushOp(vm::data(2))));
25 // vec.push_back(smart_ptr<vm::IOperand>(new vm::DivOp()));
26 // vec.push_back(smart_ptr<vm::IOperand>(new vm::PopOp()));