X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=VHDL.hs;h=5d57bb574c98fe55f51e041306e42ccabfcf6950;hb=e73057cb92295256ab62810771da8e723f4a8223;hp=ee61c500a6916f676fd75e1c7566d6d8bb868eab;hpb=157dae90bdd7c45613c6ad6185383a1137b2323f;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/VHDL.hs b/VHDL.hs index ee61c50..5d57bb5 100644 --- a/VHDL.hs +++ b/VHDL.hs @@ -20,6 +20,16 @@ import FlattenTypes import TranslatorTypes import Pretty +getDesignFile :: VHDLState AST.DesignFile +getDesignFile = do + -- Extract the library units generated from all the functions in the + -- session. + funcs <- getFuncs + let units = concat $ map getLibraryUnits funcs + return $ AST.DesignFile + [] + units + -- | Create an entity for a given function createEntity :: HsFunction -- | The function signature