From 318852d7c4254da6e44d964c726e2be8144d3004 Mon Sep 17 00:00:00 2001 From: Sven Gestegard Robertz <sven.robertz@cs.lth.se> Date: Mon, 4 May 2015 10:51:32 +0200 Subject: [PATCH] fixed examples/dynamic: compiler package rename --- examples/dynamic/test/DynamicPart.java | 12 ++++++------ examples/dynamic/test/TestLabcommGen.java | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/dynamic/test/DynamicPart.java b/examples/dynamic/test/DynamicPart.java index 5e98f51..8a420aa 100644 --- a/examples/dynamic/test/DynamicPart.java +++ b/examples/dynamic/test/DynamicPart.java @@ -22,9 +22,9 @@ import se.lth.control.labcomm2014.Decoder; import se.lth.control.labcomm2014.DecoderChannel; import se.lth.control.labcomm2014.Encoder; import se.lth.control.labcomm2014.EncoderChannel; -import AST.Parser; -import AST.Scanner; -import AST.Program; +import se.lth.control.labcomm2014.compiler.LabCommParser; +import se.lth.control.labcomm2014.compiler.LabCommScanner; +import se.lth.control.labcomm2014.compiler.Program; import beaver.Parser.Exception; public class DynamicPart { @@ -160,8 +160,8 @@ public class DynamicPart { public static InRAMCompiler generateCode(String lcDecl, HashMap<String, String> handlers) { Program ast = null; InputStream in = new ByteArrayInputStream(lcDecl.getBytes()); - Scanner scanner = new Scanner(in); - Parser parser = new Parser(); + LabCommScanner scanner = new LabCommScanner(in); + LabCommParser parser = new LabCommParser(); Collection errors = new LinkedList(); InRAMCompiler irc = null; @@ -200,7 +200,7 @@ public class DynamicPart { private static InRAMCompiler handleAst(Program lcAST, HashMap<String, String> handlers) { Map<String, String> genCode = new HashMap<String, String>(); try { - lcAST.J_gen(genCode, "labcomm.generated", 2013); + lcAST.J_gen(genCode, "labcomm.generated", 2014); } catch (IOException e) { e.printStackTrace(); } diff --git a/examples/dynamic/test/TestLabcommGen.java b/examples/dynamic/test/TestLabcommGen.java index b35f502..3f968d9 100644 --- a/examples/dynamic/test/TestLabcommGen.java +++ b/examples/dynamic/test/TestLabcommGen.java @@ -22,9 +22,9 @@ import se.lth.control.labcomm2014.Decoder; import se.lth.control.labcomm2014.DecoderChannel; import se.lth.control.labcomm2014.Encoder; import se.lth.control.labcomm2014.EncoderChannel; -import AST.Parser; -import AST.Scanner; -import AST.Program; +import se.lth.control.labcomm2014.compiler.LabCommParser; +import se.lth.control.labcomm2014.compiler.LabCommScanner; +import se.lth.control.labcomm2014.compiler.Program; import beaver.Parser.Exception; public class TestLabcommGen { @@ -163,8 +163,8 @@ public class TestLabcommGen { public static InRAMCompiler generateCode(String lcDecl, HashMap<String, String> handlers) { Program ast = null; InputStream in = new ByteArrayInputStream(lcDecl.getBytes()); - Scanner scanner = new Scanner(in); - Parser parser = new Parser(); + LabCommScanner scanner = new LabCommScanner(in); + LabCommParser parser = new LabCommParser(); Collection errors = new LinkedList(); InRAMCompiler irc = null; @@ -203,7 +203,7 @@ public class TestLabcommGen { private static InRAMCompiler handleAst(Program lcAST, HashMap<String, String> handlers) { Map<String, String> genCode = new HashMap<String, String>(); try { - lcAST.J_gen(genCode, "labcomm.generated", 2013); + lcAST.J_gen(genCode, "labcomm.generated", 2014); } catch (IOException e) { e.printStackTrace(); } -- GitLab