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