From 28895cad07c7aec1b324a2c75e5da5ce728cad91 Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Thu, 3 Dec 2020 19:22:06 -0500 Subject: Adapt to esodata changes --- base/src/bjc/dicelang/Shunter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'base/src/bjc/dicelang/Shunter.java') diff --git a/base/src/bjc/dicelang/Shunter.java b/base/src/bjc/dicelang/Shunter.java index 0e3cf1d..366c459 100644 --- a/base/src/bjc/dicelang/Shunter.java +++ b/base/src/bjc/dicelang/Shunter.java @@ -8,8 +8,8 @@ import java.util.Set; import bjc.dicelang.tokens.Token; import bjc.funcdata.FunctionalList; import bjc.funcdata.FunctionalMap; -import bjc.funcdata.IList; -import bjc.funcdata.IMap; +import bjc.funcdata.ListEx; +import bjc.funcdata.MapEx; import static bjc.dicelang.Errors.ErrorKey.EK_SHUNT_INVSEP; import static bjc.dicelang.Errors.ErrorKey.EK_SHUNT_NOGROUP; @@ -26,7 +26,7 @@ import static bjc.dicelang.tokens.Token.Type.*; */ public class Shunter { /* The binary operators and their priorities. */ - IMap ops; + MapEx ops; /* Operators that are right-associative */ Set rightAssoc; @@ -116,7 +116,7 @@ public class Shunter { * * @return Whether or not the shunt succeeded. */ - public boolean shuntTokens(final IList tks, final IList returned) { + public boolean shuntTokens(final ListEx tks, final ListEx returned) { /* Operator stack for normal and unary operators. */ final Deque opStack = new LinkedList<>(); final Deque unaryOps = new LinkedList<>(); @@ -274,7 +274,7 @@ public class Shunter { opStack.pop(); } else if(tk.type == GROUPSEP) { /* Add a grouped token. */ - final IList group = new FunctionalList<>(); + final ListEx group = new FunctionalList<>(); while(currReturned.size() != 0 && !currReturned.peek().isGrouper()) { group.add(currReturned.pop()); -- cgit v1.2.3