summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/rgens/parser/RuleCase.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2019-07-21 16:24:47 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2019-07-21 16:24:47 -0300
commit8c289f05ca36c3def6a4e4ab2414b7469c03339e (patch)
tree9e97b6ea73b94ad831258b9bede0136a43530a39 /src/main/java/bjc/rgens/parser/RuleCase.java
parent89668d36167846e002d0f6dcdc1034b5fee44ce3 (diff)
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.
Diffstat (limited to 'src/main/java/bjc/rgens/parser/RuleCase.java')
-rwxr-xr-xsrc/main/java/bjc/rgens/parser/RuleCase.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/bjc/rgens/parser/RuleCase.java b/src/main/java/bjc/rgens/parser/RuleCase.java
index 33aea0c..dacb16e 100755
--- a/src/main/java/bjc/rgens/parser/RuleCase.java
+++ b/src/main/java/bjc/rgens/parser/RuleCase.java
@@ -1,7 +1,8 @@
package bjc.rgens.parser;
import bjc.rgens.parser.elements.CaseElement;
-import bjc.utils.funcdata.IList;
+
+import java.util.List;
/*
* @NOTE
@@ -22,7 +23,7 @@ public abstract class RuleCase {
public Rule belongsTo;
- public IList<CaseElement> elementList;
+ public List<CaseElement> elementList;
/**
* Create a new case of the specified type that takes a element list
@@ -32,7 +33,7 @@ public abstract class RuleCase {
* The element list parameter of the case.
*
*/
- protected RuleCase(IList<CaseElement> elements) {
+ protected RuleCase(List<CaseElement> elements) {
elementList = elements;
serial = nextSerial;
@@ -41,7 +42,7 @@ public abstract class RuleCase {
public abstract void generate(GenerationState state);
- public abstract RuleCase withElements(IList<CaseElement> elements);
+ public abstract RuleCase withElements(List<CaseElement> elements);
public String toString() {
if(debugName != null) {