|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Compiler implementation object.
In COINS Compiler Driver API, user must provide implemtation of four
compilation steps: preprocess, compile, assemble, and link. These
implementations are called from a CompilerDriver object via this interface.
| Method Summary | |
void |
assemble(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.File out,
IoRoot io)
Assembler implementation. Input lines can be read from the InputStream. |
void |
compile(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.OutputStream out,
IoRoot io)
Compiler implementation. Input lines can be read from the InputStream. |
void |
link(java.io.File out,
IoRoot io)
Linker implementation. Output executable file should be written to a File. |
void |
preprocess(java.io.File sourceFile,
Suffix suffix,
java.io.OutputStream out,
IoRoot io)
Preprocessor implementation. The input source file name can be obtained as an File. |
| Method Detail |
public void preprocess(java.io.File sourceFile,
Suffix suffix,
java.io.OutputStream out,
IoRoot io)
throws java.io.IOException,
PassException
sourceFile - the source file name.suffix - suffix rule of the source file.out - the OutputStream.io - the IoRoot.
java.io.IOException - any IO error.
PassException - unrecoverable error(s) found in processing.
public void compile(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.OutputStream out,
IoRoot io)
throws java.io.IOException,
PassException
sourceFile - the source file name.suffix - suffix rule of the source file.in - the InputStream.out - the OutputStream.io - the IoRoot.
java.io.IOException - any IO error
PassException - unrecoverable error(s) found in processing
public void assemble(java.io.File sourceFile,
Suffix suffix,
java.io.InputStream in,
java.io.File out,
IoRoot io)
throws java.io.IOException,
PassException
sourceFile - the source file namesuffix - suffix rule of the source file.in - the InputStreamout - the output Fileio - the IoRoot.
java.io.IOException - any IO error
PassException - unrecoverable error(s) found in processing
public void link(java.io.File out,
IoRoot io)
throws java.io.IOException,
PassException
out - the output Fileio - the IoRoot.
java.io.IOException - any IO error
PassException - unrecoverable error(s) found in processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||