Skip to content

Commit 664bf03

Browse files
committed
don't accidentally handle source code as BASICODE source file name
1 parent 1b6d4b3 commit 664bf03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/haupz/basicode/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static String getSource(String filename) throws IOException {
106106
* @throws Exception in case anything goes wrong.
107107
*/
108108
public static void run(String code, Configuration configuration) throws Exception {
109-
final Parser parser = new Parser(new StringReader(getSource(code)));
109+
final Parser parser = new Parser(new StringReader(code));
110110
ProgramNode prog = parser.program();
111111
InterpreterState state = new InterpreterState(prog, bc, bc, configuration);
112112
bc.registerStopKeyHandler(() -> state.terminate());

0 commit comments

Comments
 (0)