OSDN Git Service
(root)
/
simplecms
/
utakata.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
parserの内部実装を進めたが、ごちゃごちゃしてきたため、parser内部の処理を
[simplecms/utakata.git]
/
cpu.cpp
1
#include <iostream>
2
#include <vector>
3
4
#include "cpu.h"
5
#include "stack.h"
6
7
using namespace vm;
8
9
vcpu::vcpu()
10
{
11
}
12
13
vcpu::~vcpu()
14
{
15
}
16
17
int vcpu::run(const std::vector<data>& datas)
18
{
19
return 0;
20
}
21
22
void vcpu::push(const data& data)
23
{
24
this->stack_.push(data);
25
}
26
27
void vcpu::pop()
28
{
29
this->stack_.pop();
30
}
31
32
const data& vcpu::top() const
33
{
34
return this->stack_.top();
35
}