diff options
author | Tom Smeding <tom@tomsmeding.com> | 2023-04-04 20:56:49 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2023-04-04 20:56:49 +0200 |
commit | 3df25408b6bc76745f03c824bd96d043561f3b45 (patch) | |
tree | 99941108b537e8ebaa8b5512744dd80220d76430 /Expr.hs |
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 |