This commit is contained in:
NikolajDanger
2022-06-14 09:06:28 +02:00
parent ba8451638d
commit 4e157e9e37

8
cent
View File

@@ -2,8 +2,7 @@
"""
Usage:
cent (-h|--help)
cent -i FILE
cent -c FILE
cent (-i|-c) FILE
Options:
-h --help Print this help screen
@@ -31,7 +30,10 @@ def main():
program = parser.parse(tokens)
if isinstance(program, Program):
program.eval()
if args["-i"]:
program.eval()
else:
raise Exception("Compiler not implemented")
else:
raise Exception("Output not of type 'Program'", type(program))