OSDN Git Service

parserの内部実装を進めたが、ごちゃごちゃしてきたため、parser内部の処理を
[simplecms/utakata.git] / vm.cpp
1 #include <iostream>
2 #include <vector>
3 #include <algorithm>
4
5 #include "vm.h"
6 #include "cpu.h"
7 #include "operand.h"
8
9 using namespace std;
10
11 vm::UKVirtualMachine::UKVirtualMachine() : cpu_(new vm::vcpu())
12 {
13 }
14
15 vm::UKVirtualMachine::~UKVirtualMachine()
16 {
17     //スタックを削除する。
18 }
19
20 int vm::UKVirtualMachine::run(vector<smart_ptr<vm::IOperand> >& ops)
21 {
22     //オペランドの配列をそのまま処理する。
23     
24     //for_each(ops.begin(), ops.end(), vm::OperandRunner(this->cpu_));
25     
26     return 0;
27 }