LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
parse::tasks Namespace Reference

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.

Detailed Description

Tasks of the parse module.

Function Documentation

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)
void parse::tasks::library_display ( )

References l.

void parse::tasks::library_prepend ( const std::string &  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 ( )
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"  )

Variable Documentation

misc::FileLibrary parse::tasks::file_library

Global library for search path.

const char* parse::tasks::tc_pkgdatadir = getenv("TC_PKGDATADIR")