cafe
cafe copied to clipboard
compilation command requires "./" before filename for compiling
The following compiles, but fails to write it to a file:
cafe -c export.cafe
Exception thrown:
[SUCCESS]
java.io.FileNotFoundException: null\anonymous.class (The system cannot find the path specified)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:292)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:185)
at compiler.main.CompilerResult.write(CompilerResult.java:97)
at compiler.main.CompilerResult.write(CompilerResult.java:93)
at compiler.main.CompilerResult.writeByteCode(CompilerResult.java:85)
at compiler.main.CompilerResult.writeByteCode(CompilerResult.java:76)
at compiler.main.cli.CompileCommand.execute(CompileCommand.java:56)
at compiler.main.Main.compile(Main.java:99)
at compiler.Main.compile(Main.java:45)
at compiler.Main.main(Main.java:40)
But the following works:
cafe -c ./export.cafe