X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2FTestCommandParsing.java;h=ba3595fc423c9bf298fe5938429d2cfee3f1fd82;hp=f8b8eb9a3f25b04e0c62a4b0edbbb627c1f97d45;hb=HEAD;hpb=f8576d4d2b3b30d76db552d624fc9f087b8940bd diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandParsing.java b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandParsing.java index f8b8eb9a3..ba3595fc4 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandParsing.java +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestCommandParsing.java @@ -1,29 +1,29 @@ -package org.simantics.scl.compiler.tests; - -import java.io.Reader; -import java.io.StringReader; - -import org.junit.Test; -import org.simantics.scl.compiler.internal.parsing.parser.SCLParser; -import org.simantics.scl.compiler.internal.parsing.parser.SCLParserImpl; - -public class TestCommandParsing { - @Test - public void testCommandParsing() throws Exception { - Reader reader = new StringReader("import \"asdasd\";a = 1\nb = 2"); - SCLParser parser = new SCLParserImpl(reader) { - @Override - protected Object reduceStatementCommand() { - System.out.println("statement " + get(0)); - return null; - } - - @Override - protected Object reduceImport() { - System.out.println("import " + get(0)); - return null; - } - }; - parser.parseCommands(); - } -} +package org.simantics.scl.compiler.tests; + +import java.io.Reader; +import java.io.StringReader; + +import org.junit.Test; +import org.simantics.scl.compiler.internal.parsing.parser.SCLParser; +import org.simantics.scl.compiler.internal.parsing.parser.SCLParserImpl; + +public class TestCommandParsing { + @Test + public void testCommandParsing() throws Exception { + Reader reader = new StringReader("import \"asdasd\";a = 1\nb = 2"); + SCLParser parser = new SCLParserImpl(reader) { + @Override + protected Object reduceStatementCommand() { + System.out.println("statement " + get(0)); + return null; + } + + @Override + protected Object reduceImport() { + System.out.println("import " + get(0)); + return null; + } + }; + parser.parseCommands(); + } +}