-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathArg.java
More file actions
45 lines (37 loc) · 1023 Bytes
/
Arg.java
File metadata and controls
45 lines (37 loc) · 1023 Bytes
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
package org.piccode.ast;
import org.piccode.piccodescript.TargetEnvironment;
import org.piccode.rt.PiccodeValue;
/**
*
* @author hexaredecimal
*/
public class Arg extends Ast {
public String name;
public Ast def_val;
public boolean export;
public Arg(String name, Ast def_val) {
this.name = name;
this.def_val = def_val;
this.export = false;
}
public Arg(String name) {
this.name = name;
this.def_val = null;
this.export = false;
}
@Override
public String toString() {
if (def_val == null) {
return name;
}
return name + "=" + def_val;
}
@Override
public PiccodeValue execute(Integer frame) {
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
}
@Override
public String codeGen(TargetEnvironment target) {
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
}
}