summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/examples
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-04-13 23:15:28 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-04-13 23:15:28 -0400
commita5850915df72f5968fd1b281eb9e455d50c580ee (patch)
treee2be99df87ab7392be5efd4e8be492f809578bde /BJC-Utils2/src/examples
parent9adff31e86603493c2a245e1e803d951675d5e00 (diff)
Fixed examples using trees
Diffstat (limited to 'BJC-Utils2/src/examples')
-rw-r--r--BJC-Utils2/src/examples/java/bjc/utils/examples/parsing/TreeConstructTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/BJC-Utils2/src/examples/java/bjc/utils/examples/parsing/TreeConstructTest.java b/BJC-Utils2/src/examples/java/bjc/utils/examples/parsing/TreeConstructTest.java
index 932e224..ef081d2 100644
--- a/BJC-Utils2/src/examples/java/bjc/utils/examples/parsing/TreeConstructTest.java
+++ b/BJC-Utils2/src/examples/java/bjc/utils/examples/parsing/TreeConstructTest.java
@@ -5,7 +5,7 @@ import java.util.function.Predicate;
import bjc.utils.funcdata.FunctionalStringTokenizer;
import bjc.utils.funcdata.IFunctionalList;
-import bjc.utils.parserutils.AST;
+import bjc.utils.funcdata.ITree;
import bjc.utils.parserutils.ShuntingYard;
import bjc.utils.parserutils.TreeConstructor;
@@ -30,13 +30,13 @@ public class TreeConstructTest {
ShuntingYard<String> yard = new ShuntingYard<>();
- IFunctionalList<String> shuntedTokens =
- yard.postfix(new FunctionalStringTokenizer(line)
+ IFunctionalList<String> shuntedTokens = yard
+ .postfix(new FunctionalStringTokenizer(line)
.toList((strang) -> strang), (s) -> s);
System.out.println("Shunted: " + shuntedTokens.toString());
- AST<String> constructedTree = TreeConstructor
+ ITree<String> constructedTree = TreeConstructor
.constructTree(shuntedTokens, new Predicate<String>() {
@Override
public boolean test(String token) {