From 8c289f05ca36c3def6a4e4ab2414b7469c03339e Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Sun, 21 Jul 2019 16:24:47 -0300 Subject: Refactor front-end error-handling This refactors the front-end to use a tree for capturing errors, instead of throwing exceptions. This has the benefit that you will receive notifications about all of the error messages you have, instead of only the first. I'm a bit fuzzy on the details, since it's been a while since I wrote these changes. --- src/main/java/bjc/rgens/parser/FlatRuleCase.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/bjc/rgens/parser/FlatRuleCase.java') diff --git a/src/main/java/bjc/rgens/parser/FlatRuleCase.java b/src/main/java/bjc/rgens/parser/FlatRuleCase.java index 4bbd1cc..ac6f554 100644 --- a/src/main/java/bjc/rgens/parser/FlatRuleCase.java +++ b/src/main/java/bjc/rgens/parser/FlatRuleCase.java @@ -1,11 +1,11 @@ package bjc.rgens.parser; -import bjc.utils.funcdata.IList; - import bjc.rgens.parser.elements.CaseElement; +import java.util.List; + public class FlatRuleCase extends RuleCase { - public FlatRuleCase(IList elms) { + public FlatRuleCase(List elms) { super(elms); } @@ -16,7 +16,7 @@ public class FlatRuleCase extends RuleCase { } } - public FlatRuleCase withElements(IList elms) { + public FlatRuleCase withElements(List elms) { return new FlatRuleCase(elms); } } -- cgit v1.2.3