📄 access.java
字号:
package inter;import lexer.*; import symbols.*;public class Access extends Op { public Id array; public Expr index; public Access(Id a, Expr i, Type p) { // p is element type after super(new Word("[]", Tag.INDEX), p); // flattening the array array = a; index = i; } public Expr gen() { return new Access(array, index.reduce(), type); } public void jumping(int t,int f) { emitjumps(reduce().toString(),t,f); } public String toString() { return array.toString() + " [ " + index.toString() + " ]"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -