Call compilation entry point

This commit is contained in:
Tristan B. Velloza Kildaire 2021-03-02 21:55:45 +02:00
parent 639455d792
commit 7a2b73a299
2 changed files with 8 additions and 1 deletions

View File

@ -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]);
} }
} }

View File

@ -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 */
} }