main

Members

Functions

main
void main(cstring[] args)

Entry function of DIL.

newCompilationContext
CompilationContext newCompilationContext()

Creates the global compilation context.

parseDebugOrVersion
bool parseDebugOrVersion(ref OptParser op, CompilationContext context)

Parses a debug or version command line option.

printErrors
void printErrors(Diagnostics diag)

Prints the errors collected in diag.

printHelp
void printHelp(cstring command, Diagnostics diag)

Prints the help message of a command. If the command wasn't found, the main help message is printed.

readStdin
char[] readStdin()

Reads the standard input and returns its contents.

updateWithSettings
void updateWithSettings(CompilationContext cc)

Updates cc with variables from GlobalSettings.

Variables

COMMANDS
enum string COMMANDS;

Available commands.

Meta

Authors

Aziz Köksal

License

GPL3 $(Maturity average)