implement method to generate an error prefix that mentions the line and column the error occured in
This commit is contained in:
7
src/main/java/de/hsrm/compiler/Klang/helper/Helper.java
Normal file
7
src/main/java/de/hsrm/compiler/Klang/helper/Helper.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package de.hsrm.compiler.Klang.helper;
|
||||
|
||||
public class Helper {
|
||||
public static String getErrorPrefix(int line, int col) {
|
||||
return "Error in line " + line + ":" + col + " ";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user