1 {-# LANGUAGE TemplateHaskell #-}
3 module GlobalNameTable (globalNameTable) where
5 import Language.Haskell.TH
6 import qualified Data.Map as Map
8 import qualified ForSyDe.Backend.VHDL.AST as AST
9 import qualified Data.Param.TFVec as V
15 mkGlobalNameTable :: [(String, (Int, [AST.Expr] -> AST.Expr ) )] -> NameTable
16 mkGlobalNameTable = Map.fromList
18 globalNameTable :: NameTable
19 globalNameTable = mkGlobalNameTable
20 [ (show ('(V.!)) , (2, genExprFCall2L exId ) )
21 , ("head" , (1, genExprFCall1L headId ) )