mips without optimize

This commit is contained in:
colden
2025-12-12 20:14:00 +08:00
parent 84827838e2
commit c94bebf37b
130 changed files with 5462 additions and 4182 deletions

54
error/Error.java Normal file → Executable file
View File

@@ -1,27 +1,27 @@
package error;
public class Error {
private int line;
private ErrorType type;
public Error(int line, ErrorType type) {
this.line = line;
this.type = type;
}
public void printError() {
System.out.println(this.line + " " + this.type);
}
public int getLine() {
return this.line;
}
public ErrorType getType() {
return this.type;
}
public String toString() {
return this.line + " " + this.type + "\n";
}
}
package error;
public class Error {
private int line;
private ErrorType type;
public Error(int line, ErrorType type) {
this.line = line;
this.type = type;
}
public void printError() {
System.out.println(this.line + " " + this.type);
}
public int getLine() {
return this.line;
}
public ErrorType getType() {
return this.type;
}
public String toString() {
return this.line + " " + this.type + "\n";
}
}