mips without optimize
This commit is contained in:
54
error/Error.java
Normal file → Executable file
54
error/Error.java
Normal file → Executable 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";
|
||||
}
|
||||
}
|
||||
|
||||
34
error/ErrorType.java
Normal file → Executable file
34
error/ErrorType.java
Normal file → Executable file
@@ -1,17 +1,17 @@
|
||||
package error;
|
||||
|
||||
public enum ErrorType {
|
||||
a,
|
||||
b,
|
||||
c,
|
||||
d,
|
||||
e,
|
||||
f,
|
||||
g,
|
||||
h,
|
||||
i,
|
||||
j,
|
||||
k,
|
||||
l,
|
||||
m
|
||||
}
|
||||
package error;
|
||||
|
||||
public enum ErrorType {
|
||||
a,
|
||||
b,
|
||||
c,
|
||||
d,
|
||||
e,
|
||||
f,
|
||||
g,
|
||||
h,
|
||||
i,
|
||||
j,
|
||||
k,
|
||||
l,
|
||||
m
|
||||
}
|
||||
|
||||
0
error/Errors.java
Normal file → Executable file
0
error/Errors.java
Normal file → Executable file
Reference in New Issue
Block a user