summaryrefslogtreecommitdiff
path: root/src/Grasp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Grasp')
-rw-r--r--src/Grasp/Interpreter.hs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Grasp/Interpreter.hs b/src/Grasp/Interpreter.hs
new file mode 100644
index 0000000..19b9a0f
--- /dev/null
+++ b/src/Grasp/Interpreter.hs
@@ -0,0 +1,35 @@
+module Grasp.Interpreter (
+ grasp
+ ) where
+
+
+import Grasp.Types
+import Grasp.Parser
+
+
+
+type IP = [LNode String]
+
+
+
+
+grasp :: GraspProgram -> IO ()
+grasp g =
+ let ips = map (:[]) (nodesWithName g "grasp:main")
+ in interpret g ips
+
+
+
+reachable :: GraspProgram -> [LNode String]
+reachable g = []
+
+
+
+garbageCollect :: GraspProgram -> GraspProgram
+garbageCollect g = g
+
+
+
+interpret :: GraspProgram -> [IP] -> IO ()
+interpret g ips = return ()
+