Decaf Compiler
|
Compiler driver. More...
Functions | |
void | Error_throw_printf (const char *format,...) |
Throw an exception with an error message using printf syntax. | |
bool | read_file (const char *filename, char *text) |
Read all text data from a file. | |
int | main (int argc, char **argv) |
Compiler entry point. | |
Variables | |
char | decaf_error_msg [MAX_ERROR_LEN] |
Error message buffer. | |
jmp_buf | decaf_error |
Data structure used by setjmp / longjmp for exception handling. | |
Compiler driver.
void Error_throw_printf | ( | const char * | format, |
... | |||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Compiler entry point.
argc | Number of command-line arguments |
argv | Array of command-line argument strings |
EXIT_SUCCESS
if the compilation succeeds and EXIT_FAILURE
otherwise bool read_file | ( | const char * | filename, |
char * | text | ||
) |
Read all text data from a file.
filename | Name of file to read |
text | String buffer destination (must be MAX_FILE_SIZE characters long) |