From a5850915df72f5968fd1b281eb9e455d50c580ee Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 13 Apr 2016 23:15:28 -0400 Subject: Fixed examples using trees --- .../java/bjc/utils/examples/parsing/TreeConstructTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'BJC-Utils2/src/examples/java') 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 yard = new ShuntingYard<>(); - IFunctionalList shuntedTokens = - yard.postfix(new FunctionalStringTokenizer(line) + IFunctionalList shuntedTokens = yard + .postfix(new FunctionalStringTokenizer(line) .toList((strang) -> strang), (s) -> s); System.out.println("Shunted: " + shuntedTokens.toString()); - AST constructedTree = TreeConstructor + ITree constructedTree = TreeConstructor .constructTree(shuntedTokens, new Predicate() { @Override public boolean test(String token) { -- cgit v1.2.3