aboutsummaryrefslogtreecommitdiff
path: root/src/statement.hs
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-16 12:09:27 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-16 12:09:27 +0100
commitd17423cba7c15a26f835a6fa578ecb48b80d8aab (patch)
tree55b6ee4447ac61dcbc949acc5aa2436e014d2392 /src/statement.hs
parentd8751f2cced8f14366533ff0dbbc62fa73ec8665 (diff)
downloadcomputorv2-d17423cba7c15a26f835a6fa578ecb48b80d8aab.tar.gz
computorv2-d17423cba7c15a26f835a6fa578ecb48b80d8aab.tar.bz2
computorv2-d17423cba7c15a26f835a6fa578ecb48b80d8aab.zip
split parser in multiple modules, parsing of assignment and statement
Diffstat (limited to 'src/statement.hs')
-rw-r--r--src/statement.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/statement.hs b/src/statement.hs
new file mode 100644
index 0000000..75dfdb4
--- /dev/null
+++ b/src/statement.hs
@@ -0,0 +1,14 @@
+module Statement where
+
+import Assignment
+import Expr
+
+
+data Statement
+ = SAssignment Assignment
+ | SExpr Expr
+
+instance Show Statement where
+ show (SAssignment a) = show a
+ show (SExpr e) = show e
+