LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
|
Tasks of the parse module. More...
Functions | |
void | no_prelude () |
void | parse () |
void | library_display () |
void | library_append (const std::string &dir) |
void | library_prepend (const std::string &dir) |
TASK_GROUP ("1. Parsing") | |
BOOLEAN_TASK_DECLARE ("scan-trace","trace the scanning", scan_trace_p,"") | |
Enable scanner trace. | |
BOOLEAN_TASK_DECLARE ("parse-trace","trace the parse", parse_trace_p,"") | |
Enable parser trace. | |
STRING_TASK_DECLARE ("prelude","builtin","name of the prelude. Defaults to \"builtin\" ""denoting the builtin prelude", prelude,"") | |
Prelude declarations. | |
TASK_DECLARE ("X|no-prelude","same as --prelude=\"\"", no_prelude,"") | |
Prelude declarations. | |
TASK_DECLARE ("parse","parse a file", parse,"") | |
Parse the input file, store the ast into ast::tasks::the_program. | |
TASK_DECLARE ("library-display","display library search path", library_display,"") | |
Display library search path. | |
MULTIPLE_STRING_TASK_DECLARE ("P|library-append","append directory DIR to the search path", library_append,"") | |
Append directory DIR to the search path. | |
MULTIPLE_STRING_TASK_DECLARE ("p|library-prepend","prepend directory DIR to the search path", library_prepend,"") | |
Prepend directory DIR to the search path. |
Variables | |
const char * | tc_pkgdatadir = getenv("TC_PKGDATADIR") |
misc::file_library | l |
misc::FileLibrary | file_library |
Global library for search path. |
Tasks of the parse module.
parse::tasks::BOOLEAN_TASK_DECLARE | ( | "scan-trace" | , |
"trace the scanning" | , | ||
scan_trace_p | , | ||
"" | |||
) |
Enable scanner trace.
parse::tasks::BOOLEAN_TASK_DECLARE | ( | "parse-trace" | , |
"trace the parse" | , | ||
parse_trace_p | , | ||
"" | |||
) |
Enable parser trace.
void parse::tasks::library_append | ( | const std::string & | dir | ) |
References misc::file_library::append_dir(), and l.
void parse::tasks::library_display | ( | ) |
References l.
void parse::tasks::library_prepend | ( | const std::string & | dir | ) |
References l, and misc::file_library::prepend_dir().
parse::tasks::MULTIPLE_STRING_TASK_DECLARE | ( | "P|library-append" | , |
"append directory DIR to the search path" | , | ||
library_append | , | ||
"" | |||
) |
Append directory DIR to the search path.
parse::tasks::MULTIPLE_STRING_TASK_DECLARE | ( | "p|library-prepend" | , |
"prepend directory DIR to the search path" | , | ||
library_prepend | , | ||
"" | |||
) |
Prepend directory DIR to the search path.
void parse::tasks::no_prelude | ( | ) |
void parse::tasks::parse | ( | ) |
References misc::error::exit(), filename, l, precondition, and task_error.
parse::tasks::STRING_TASK_DECLARE | ( | "prelude" | , |
"builtin" | , | ||
"name of the prelude. Defaults to \"builtin\" ""denoting the builtin prelude" | , | ||
prelude | , | ||
"" | |||
) |
Prelude declarations.
parse::tasks::TASK_DECLARE | ( | "X|no-prelude" | , |
"same as -- | prelude = \"\"" , |
||
no_prelude | , | ||
"" | |||
) |
Prelude declarations.
parse::tasks::TASK_DECLARE | ( | "parse" | , |
"parse a file" | , | ||
parse | , | ||
"" | |||
) |
Parse the input file, store the ast into ast::tasks::the_program.
parse::tasks::TASK_DECLARE | ( | "library-display" | , |
"display library search path" | , | ||
library_display | , | ||
"" | |||
) |
Display library search path.
parse::tasks::TASK_GROUP | ( | "1. Parsing" | ) |
misc::FileLibrary parse::tasks::file_library |
Global library for search path.
misc::file_library parse::tasks::l |
Referenced by assem::Instrs::label_find(), library_append(), library_display(), library_prepend(), translate::Translator::operator()(), misc::operator<<(), and parse().
const char* parse::tasks::tc_pkgdatadir = getenv("TC_PKGDATADIR") |