Skip to content

Commit 474c4ce

Browse files
author
pepc84
committed
Fix ParserCLI: add package declaration, fix CodeGen.generate signature
1 parent 16e0b5b commit 474c4ce

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

mode/CppMode.jar

1.64 KB
Binary file not shown.

src/java/ParserCLI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
package processing.mode.cpp;
12
import java.io.*;
23
import java.nio.charset.StandardCharsets;
34

@@ -13,7 +14,7 @@ public static void main(String[] args) throws Exception {
1314
String input = new String(System.in.readAllBytes(), StandardCharsets.UTF_8);
1415
try {
1516
var cu = Parser.parse(input);
16-
var cpp = CodeGen.generate(cu);
17+
var cpp = CodeGen.generate(cu, null);
1718
System.out.print(cpp);
1819
System.exit(0);
1920
} catch (Exception e) {

0 commit comments

Comments
 (0)