summaryrefslogtreecommitdiff
path: root/src/Grasp/Interpreter.hs
blob: 19b9a0f7a2114717466d8909e0319ae8242ddfe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 ()