forked from JavaTX/JavaCompilerCore
RunParser no handles line breaks.This should also fix problems with
comments.
This commit is contained in:
parent
68476f9f96
commit
c3320858a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user