CompileCommand2

The compile command. NOTE: The plan is to replace CompileCommand.

Members

Functions

importModuleByFQN
void importModuleByFQN(cstring modFQNPath, Token* fqnTok = null, Module modul = null)

Loads a module by its FQN path and runs pass 1 on it.

importModuleByFile
void importModuleByFile(cstring filePath)

Loads a module by its file path and runs pass 1 on it.

run
void run()

Runs the command.

runPass1
void runPass1(Module modul)

Runs semantic pass 1 on a module. Also imports its dependencies.

runPass2
void runPass2(Module modul)

Runs semantic pass 2 on a module.

Variables

cc
CompilationContext cc;

Context information.

filePaths
cstring[] filePaths;

Explicitly specified modules (on the command line.)

mm
ModuleManager mm;

For finding and loading modules.

printModuleTree
bool printModuleTree;

Whether to print the module tree.

printSymbolTree
bool printSymbolTree;

Whether to print the symbol tree.

Inherited Members

From Command

verbose
bool verbose;

Verbose output.

log
void log(cstring format, ...)

Logs messages to stdout.

lzy
void lzy(lazy void logfunc)

Calls logfunc only when the verbose-flag is on.

run
void run()

Runs the command.

Meta