diff options
-rw-r--r-- | src/Grasp/Interpreter.hs | 35 |
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 () + |