public class Interpreter
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
int |
arrayPtr |
static boolean |
listswitch |
Pcode[] |
pcodeArray |
| 构造器和说明 |
|---|
Interpreter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
debugPcodeArray() |
void |
gen(int f,
int l,
int a)
生成虚拟机代码
|
void |
interpret(java.io.BufferedReader stdin,
java.io.BufferedWriter stdout)
这个过程模拟了一台可以运行类PCODE指令的栈式计算机。
|
void |
listcode(int start)
输出目标代码清单
|
public int arrayPtr
public Pcode[] pcodeArray
public static boolean listswitch
public void gen(int f,
int l,
int a)
f - Pcodeuction.fl - Pcodeuction.la - Pcodeuction.apublic void listcode(int start)
start - 开始输出的位置public void interpret(java.io.BufferedReader stdin,
java.io.BufferedWriter stdout)
stdin - 从键盘输入无符号整数stdout - 显示pcode运行过程public void debugPcodeArray()
throws java.io.IOException
java.io.IOException