✨
This commit is contained in:
8
cent
8
cent
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user