toLLVM en cours

This commit is contained in:
trochas
2025-04-03 13:08:07 +02:00
parent 8b2f8a6b8f
commit bd7b74461e
4 changed files with 54 additions and 6 deletions

View File

@@ -10,11 +10,16 @@ import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
import TP2.asd.Program.*;
import TP2.llvm.Interface.ProgramLLVM;
import TP2.llvm.Program.ProgramLLVMImpl;
import TP2.llvm.ProgramLLVM;
import TP2.llvm.ProgramLLVM.*;
import java.util.*;
/*
./gradlew build
java -jar build/libs/TP2.jar tests/fragment0/priority2.vsl
*/
public class Main {
public static void main(String[] args) {
try {
@@ -49,6 +54,11 @@ public class Main {
// Generate the intermediate representation
System.out.println("todo");
//ProgramLLVMImpl astLLVM = ast.toLLVM();
//System.out.println("\n\n PRETTYPRINTER : \n--------------\n" + astLLVM.prettyprinter() + "\n--------------\nFIN PRETTYPRINTER");
} catch (IOException | RecognitionException e) {
e.printStackTrace();