class DecafCompiler extends Object
| Constructor and Description |
|---|
DecafCompiler(String[] args)
Create a new compiler instance
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Program entry point.
|
void |
run()
Run all phases of the compiler.
|
public DecafCompiler(String[] args)
args - Command-line argumentspublic static void main(String[] args)
args - Command-line argumentspublic void run()
throws IOException,
InvalidTokenException,
InvalidSyntaxException,
InvalidProgramException
IOException - Thrown if there is an I/O problemInvalidTokenException - Thrown if there is a lexing problemInvalidSyntaxException - Thrown if there is a parsing problemInvalidProgramException - Thrown if static analysis finds a problemCopyright © 2019. All rights reserved.