This commit is contained in:
TopchetoEU 2024-09-14 14:23:35 +03:00
parent 55613ef2c9
commit 23ae2b2e46
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -51,6 +51,7 @@ public class ParseRes<T> {
return new ParseRes<T>(State.FAILED, null, null, null, 0); return new ParseRes<T>(State.FAILED, null, null, null, 0);
} }
public static <T> ParseRes<T> error(Location loc, String error) { public static <T> ParseRes<T> error(Location loc, String error) {
// TODO: differentiate definitive and probable errors
return new ParseRes<>(State.ERROR, loc, error, null, 0); return new ParseRes<>(State.ERROR, loc, error, null, 0);
} }
public static <T> ParseRes<T> res(T val, int i) { public static <T> ParseRes<T> res(T val, int i) {