diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-03-16 14:15:42 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-03-16 14:15:42 +0100 |
| commit | 8c8f6155f1b05230c271059c52a503211aec872b (patch) | |
| tree | 53626fa32ad3f6178b42a9dc5db588ee01277cd5 /src/Statement.hs | |
| parent | d17423cba7c15a26f835a6fa578ecb48b80d8aab (diff) | |
| download | computorv2-8c8f6155f1b05230c271059c52a503211aec872b.tar.gz computorv2-8c8f6155f1b05230c271059c52a503211aec872b.tar.bz2 computorv2-8c8f6155f1b05230c271059c52a503211aec872b.zip | |
file Renaming, basic REPL
Diffstat (limited to 'src/Statement.hs')
| -rw-r--r-- | src/Statement.hs | 14 |
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 + |
