RunParser no handles line breaks.This should also fix problems with

comments.
This commit is contained in:
Jakob Herrmann 2017-01-18 13:27:17 +01:00
parent 68476f9f96
commit c3320858a3

View File

@ -18,7 +18,7 @@ public class RunParser{
try{
Scanner sc = new Scanner(System.in);
String inputString = sc.nextLine();
while(sc.hasNextLine()) inputString = inputString + sc.nextLine();
while(sc.hasNextLine()) inputString = inputString + sc.nextLine() + "\n";
InputStream stream = new ByteArrayInputStream(inputString.getBytes(StandardCharsets.UTF_8));
ANTLRInputStream input = new ANTLRInputStream(stream);
Java8Lexer lexer = new Java8Lexer(input);