diff --git a/examples/dynamic/test/DynamicPart.java b/examples/dynamic/test/DynamicPart.java index 5e98f51082f6be5c50516d94cfb54bd485836d32..8a420aae7114b74342454819efa4b8e84debbcdb 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 b35f5023a561f994ec5d8d5125917265eee7028c..3f968d944b366ac24a6c89922092d94c884b66b3 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(); }