summaryrefslogtreecommitdiff
path: root/Expr.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2023-04-04 20:56:49 +0200
committerTom Smeding <tom@tomsmeding.com>2023-04-04 20:56:49 +0200
commit3df25408b6bc76745f03c824bd96d043561f3b45 (patch)
tree99941108b537e8ebaa8b5512744dd80220d76430 /Expr.hs
InitialHEADmaster
Diffstat (limited to 'Expr.hs')
-rw-r--r--Expr.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Expr.hs b/Expr.hs
new file mode 100644
index 0000000..80ce440
--- /dev/null
+++ b/Expr.hs
@@ -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