LLVM + interface visitor
This commit is contained in:
@@ -1,15 +1,29 @@
|
||||
package TP2.llvm;
|
||||
import TP2.asd.Program.ProgramImp;
|
||||
import TP2.llvm.ProgramLLVM.*;
|
||||
|
||||
public interface Interface {
|
||||
//////////ProgramLLVM
|
||||
public interface ProgLLVM{
|
||||
public <H,S> S accept(ProgramLLVMVisitor<H,S> v, H h);
|
||||
public String prettyprinter();
|
||||
}
|
||||
|
||||
public interface ProgramLLVMVisitor<H,S> {
|
||||
public S visitProgramLLVM(ProgramLLVMImpl programImp, H h);
|
||||
}
|
||||
|
||||
//////////DefineLLVM
|
||||
public interface DefineLLVM{
|
||||
public <H,S> S accept(DefineLLVMVisitor<H,S> v, H h);
|
||||
public String prettyprinter();
|
||||
}
|
||||
|
||||
public interface DefineLLVMVisitor<H,S> {
|
||||
public S visitProgramLLVM(DefineLLVMImpl defineLLVMImp, H h);
|
||||
}
|
||||
|
||||
|
||||
public interface IdentifierLLVM{ //globaux @ et local %
|
||||
public String prettyprinter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user