Call compilation entry point
This commit is contained in:
parent
639455d792
commit
7a2b73a299
|
@ -8,6 +8,7 @@ module commandline.commands;
|
||||||
|
|
||||||
import jcli;
|
import jcli;
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
|
import compiler.compiler : beginCompilation;
|
||||||
|
|
||||||
@Command("help", "Shows the help screen")
|
@Command("help", "Shows the help screen")
|
||||||
struct helpCommand
|
struct helpCommand
|
||||||
|
@ -31,5 +32,11 @@ struct compileCommand
|
||||||
void onExecute()
|
void onExecute()
|
||||||
{
|
{
|
||||||
writeln("Compiling source file: "~sourceFile);
|
writeln("Compiling source file: "~sourceFile);
|
||||||
|
|
||||||
|
/* TODO: Read file */
|
||||||
|
string sourceCode = "";
|
||||||
|
|
||||||
|
|
||||||
|
beginCompilation([sourceFile]);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
module compiler.compiler;
|
module compiler.compiler;
|
||||||
|
|
||||||
void beginCompilation()
|
void beginCompilation(string[] sourceFile)
|
||||||
{
|
{
|
||||||
/* TODO: Begin compilation process, take in data here */
|
/* TODO: Begin compilation process, take in data here */
|
||||||
}
|
}
|
Loading…
Reference in New Issue