Updated main to use the updated Code Generator.
This commit is contained in:
parent
5d5a610cca
commit
818e57ff14
1 changed files with 3 additions and 1 deletions
|
|
@ -18,7 +18,9 @@ main = getArgs >>= \case
|
||||||
putStrLn "SYNTAX ERROR"
|
putStrLn "SYNTAX ERROR"
|
||||||
putStrLn err
|
putStrLn err
|
||||||
exitFailure
|
exitFailure
|
||||||
Right prg -> compile prg
|
Right prg -> case compile prg of
|
||||||
|
Left err -> putStrLn err
|
||||||
|
Right res -> putStrLn res
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue