aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinhard Leichtfuß <alguien@respiranto.de>2025-05-21 11:00:46 +0200
committerEinhard Leichtfuß <alguien@respiranto.de>2025-05-21 11:00:46 +0200
commit689732c084b9bc017b9015b8b151088fe057464c (patch)
treedcd0e0aff61ce04e45f6ee1c2a6c11dc1375d715
parent7f5656c1b1493a258d373a3fcfac1a455d264406 (diff)
Add module AST
-rw-r--r--src/Language/SimpleShell/AST/Module.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Language/SimpleShell/AST/Module.hs b/src/Language/SimpleShell/AST/Module.hs
new file mode 100644
index 0000000..5503514
--- /dev/null
+++ b/src/Language/SimpleShell/AST/Module.hs
@@ -0,0 +1,15 @@
+module Language.SimpleShell.AST.Module
+ ( Module(..)
+ , ModuleElement(..)
+ )
+where
+
+import Language.SimpleShell.AST.Function (Function)
+import Language.SimpleShell.AST.Procedure (Procedure)
+
+
+newtype Module = Module [ModuleElement]
+
+data ModuleElement
+ = FunctionElement Function
+ | ProcedureElement Procedure