diff options
author | Camil Staps | 2018-02-08 09:00:32 +0100 |
---|---|---|
committer | Camil Staps | 2018-02-08 09:00:32 +0100 |
commit | 989afebbd01990d57b937d7cfafc81ac77409d45 (patch) | |
tree | 48490eb04efcd64c75d56c8db4696c3a2c6ae912 | |
parent | Merge branch 'master' of gitlab.science.ru.nl:cstaps/compiler-construction (diff) |
Implement pprint for Nop
-rw-r--r-- | src/SPL/PrettyPrinter.hs | 3 |
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 |