From 4e157e9e377a008044a2707b6d9db948e9ea6186 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Tue, 14 Jun 2022 09:06:28 +0200 Subject: [PATCH] :sparkles: --- cent | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cent b/cent index f96e715..20cd6b9 100755 --- a/cent +++ b/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))