toLLVM prettyprinter pour assign

This commit is contained in:
trochas
2025-04-07 16:06:21 +02:00
parent deafaa26fc
commit b3ed282f9a
8 changed files with 39 additions and 20 deletions

View File

@@ -45,19 +45,20 @@ public class Main {
ProgramImp ast = parser.program();
// Pretty-print the program (to debug parsing)
System.err.println("todo " + ast);
System.out.println("\n\n PRETTYPRINTER VSL : \n--------------\n" + ast.prettyprinter() + "\n--------------\nFIN PRETTYPRINTER");
//System.err.println("todo " + ast);
//System.out.println("\n\n PRETTYPRINTER LLVM : \n--------------\n");
// System.out.println(ast.prettyprinter());
//System.out.println("\n\n PRETTYPRINTER LLVM : \n--------------\n");
// Verify the program semantic
// Generate the intermediate representation
System.out.println("todo");
//System.out.println("todo");
ProgramLLVMImpl astLLVM = ast.toLLVM();
System.out.println("\n\n PRETTYPRINTER LLBD : \n--------------\n" + astLLVM.prettyprinter() + "\n--------------\nFIN PRETTYPRINTER");
//System.out.println("\n\n PRETTYPRINTER LLVM : \n--------------\n");
System.out.println(astLLVM.prettyprinter());
//System.out.println("\n\n PRETTYPRINTER LLVM : \n--------------\n");
} catch (IOException | RecognitionException e) {