summaryrefslogtreecommitdiff
path: root/src/SPL/PrettyPrinter.hs
diff options
context:
space:
mode:
authorCamil Staps2018-02-08 09:00:32 +0100
committerCamil Staps2018-02-08 09:00:32 +0100
commit989afebbd01990d57b937d7cfafc81ac77409d45 (patch)
tree48490eb04efcd64c75d56c8db4696c3a2c6ae912 /src/SPL/PrettyPrinter.hs
parentMerge branch 'master' of gitlab.science.ru.nl:cstaps/compiler-construction (diff)
Implement pprint for Nop
Diffstat (limited to 'src/SPL/PrettyPrinter.hs')
-rw-r--r--src/SPL/PrettyPrinter.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SPL/PrettyPrinter.hs b/src/SPL/PrettyPrinter.hs
index 6d55d1b..48cdf9d 100644
--- a/src/SPL/PrettyPrinter.hs
+++ b/src/SPL/PrettyPrinter.hs
@@ -112,7 +112,8 @@ instance Pprint Statement where
pprint stmt2
pprint ";"
pprint stmt1
- pprint _ = error "Cannot pprint unknow statement"
+ pprint Nop = return ()
+ pprint _ = error "Cannot pprint unknown statement"
instance Pprint Expression where
pprint (Var v) = pprint v