-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathfake.java
More file actions
63 lines (48 loc) · 1.21 KB
/
fake.java
File metadata and controls
63 lines (48 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.github.esrrhs.fakescript;
public class fake
{
protected boolean error = false;
protected String errorstr = "";
protected callback cb = null;
// 配置
protected fkconfig cfg = new fkconfig();
// 解析
protected parser pa = new parser(this);
// 参数栈
protected paramstack ps = new paramstack(this);
// 二进制
protected binary bin = new binary(this);
// 函数索引
protected funcmap fm = new funcmap(this);
// 性能检测
protected profile pf = new profile(this);
// 内建的函数集合
protected buildinfunc bif = new buildinfunc(this);
// 当前运行状态
protected running rn = new running(this);
// debug容器
protected debuging dbg = new debuging(this);
// 优化
protected optimizer opt = new optimizer(this);
protected fake clonef()
{
fake nf = new fake();
nf.cfg = this.cfg;
nf.cb = this.cb;
nf.pa = this.pa.clonef(this);
nf.ps = new paramstack(this);
nf.bin = new binary(this);
nf.fm = this.fm.clonef(this);
nf.pf = new profile(this);
nf.bif = new buildinfunc(this);
nf.rn = new running(this);
nf.dbg = new debuging(this);
nf.opt = new optimizer(this);
return nf;
}
public void clearerr()
{
error = false;
errorstr = "";
}
}