diff options
Diffstat (limited to 'Expr.hs')
-rw-r--r-- | Expr.hs | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +module Expr where + + +data Expr + = EInfix Expr String Expr + | EPrefix String Expr + | EParens Expr + | ELitInt Integer + | EVar String + deriving (Show) + +einfix :: String -> Expr -> Expr -> Expr +einfix = flip EInfix |