diff --git a/source/tlang/commandline/commands.d b/source/tlang/commandline/commands.d index acbbdcb..d90c974 100644 --- a/source/tlang/commandline/commands.d +++ b/source/tlang/commandline/commands.d @@ -8,6 +8,7 @@ module commandline.commands; import jcli; import std.stdio; +import compiler.compiler : beginCompilation; @Command("help", "Shows the help screen") struct helpCommand @@ -31,5 +32,11 @@ struct compileCommand void onExecute() { writeln("Compiling source file: "~sourceFile); + + /* TODO: Read file */ + string sourceCode = ""; + + + beginCompilation([sourceFile]); } } \ No newline at end of file diff --git a/source/tlang/compiler/compiler.d b/source/tlang/compiler/compiler.d index d645a8b..a8f310d 100644 --- a/source/tlang/compiler/compiler.d +++ b/source/tlang/compiler/compiler.d @@ -1,6 +1,6 @@ module compiler.compiler; -void beginCompilation() +void beginCompilation(string[] sourceFile) { /* TODO: Begin compilation process, take in data here */ } \ No newline at end of file