diff options
Diffstat (limited to 'ast.hs')
-rw-r--r-- | ast.hs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -38,6 +38,7 @@ data Type = TypeInt Int deriving (Show, Eq) data Literal = LitInt Integer + | LitFloat Double | LitString String | LitVar Name | LitCall Name [Expression] @@ -127,6 +128,7 @@ instance PShow Type where instance PShow Literal where pshow (LitInt i) = pshow i + pshow (LitFloat x) = pshow x pshow (LitString s) = pshow s pshow (LitVar n) = n pshow (LitCall n a) = concat [n, "(", intercalate ", " (map pshow a), ")"] |