parent
a8f93e5817
commit
aae5dbabe8
2
dub.json
2
dub.json
|
@ -5,7 +5,7 @@
|
||||||
"copyright": "Copyright © 2021, Tristan B. Kildaire",
|
"copyright": "Copyright © 2021, Tristan B. Kildaire",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gogga": "~>0.1.0",
|
"gogga": "~>0.1.0",
|
||||||
"jcli": "~>0.12.0"
|
"jcli": "~>0.24.0"
|
||||||
},
|
},
|
||||||
"description": "The official Tristan language compiler project",
|
"description": "The official Tristan language compiler project",
|
||||||
"license": "GPLv3",
|
"license": "GPLv3",
|
||||||
|
|
|
@ -12,6 +12,8 @@ import compiler.compiler : beginCompilation;
|
||||||
import std.exception : ErrnoException;
|
import std.exception : ErrnoException;
|
||||||
import compiler.lexer : Lexer;
|
import compiler.lexer : Lexer;
|
||||||
|
|
||||||
|
// import jcli.cli;
|
||||||
|
|
||||||
@Command("help", "Shows the help screen")
|
@Command("help", "Shows the help screen")
|
||||||
struct helpCommand
|
struct helpCommand
|
||||||
{
|
{
|
||||||
|
@ -28,7 +30,7 @@ struct helpCommand
|
||||||
@Command("compile", "Compiles the given file(s)")
|
@Command("compile", "Compiles the given file(s)")
|
||||||
struct compileCommand
|
struct compileCommand
|
||||||
{
|
{
|
||||||
@CommandPositionalArg(0, "source file", "The source file to compile")
|
@ArgPositional("source file", "The source file to compile")
|
||||||
string sourceFile;
|
string sourceFile;
|
||||||
|
|
||||||
// @CommandRawListArg
|
// @CommandRawListArg
|
||||||
|
@ -53,7 +55,7 @@ struct compileCommand
|
||||||
@Command("lex", "Performs tokenization of the given file(s)")
|
@Command("lex", "Performs tokenization of the given file(s)")
|
||||||
struct lexCommand
|
struct lexCommand
|
||||||
{
|
{
|
||||||
@CommandPositionalArg(0, "source file", "The source file to compile")
|
@ArgPositional("source file", "The source file to compile")
|
||||||
string sourceFile;
|
string sourceFile;
|
||||||
|
|
||||||
void onExecute()
|
void onExecute()
|
||||||
|
|
Loading…
Reference in New Issue