X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Constants.hs;h=1637d582ea14c53f7841cd64b3c6a2c529d1b590;hb=bdaeea7a42e08a5a2bc88b44a9cf320266cb2b73;hp=61889af964ed1a8c2c9e72cd0e094548515e56a9;hpb=daba7a870fe4808faf6e54b26572a707237ec3c2;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Constants.hs b/Constants.hs index 61889af..1637d58 100644 --- a/Constants.hs +++ b/Constants.hs @@ -59,108 +59,155 @@ defaultId = AST.unsafeVHDLBasicId "default" -- FSVec function identifiers -- | ex (operator ! in original Haskell source) function identifier -exId :: AST.VHDLId -exId = AST.unsafeVHDLBasicId "ex" +exId :: String +exId = "!" -- | sel (function select in original Haskell source) function identifier -selId :: AST.VHDLId -selId = AST.unsafeVHDLBasicId "sel" +selId :: String +selId = "select" -- | ltplus (function (<+) in original Haskell source) function identifier -ltplusId :: AST.VHDLId -ltplusId = AST.unsafeVHDLBasicId "ltplus" +ltplusId :: String +ltplusId = "<+" -- | plusplus (function (++) in original Haskell source) function identifier -plusplusId :: AST.VHDLId -plusplusId = AST.unsafeVHDLBasicId "plusplus" +plusplusId :: String +plusplusId = "++" -- | empty function identifier -emptyId :: AST.VHDLId -emptyId = AST.unsafeVHDLBasicId "empty" +emptyId :: String +emptyId = "empty" -- | plusgt (function (+>) in original Haskell source) function identifier -plusgtId :: AST.VHDLId -plusgtId = AST.unsafeVHDLBasicId "plusgt" +plusgtId :: String +plusgtId = "+>" -- | singleton function identifier -singletonId :: AST.VHDLId -singletonId = AST.unsafeVHDLBasicId "singleton" +singletonId :: String +singletonId = "singleton" -- | length function identifier -lengthId :: AST.VHDLId -lengthId = AST.unsafeVHDLBasicId "length" +lengthId :: String +lengthId = "length" -- | isnull (function null in original Haskell source) function identifier -isnullId :: AST.VHDLId -isnullId = AST.unsafeVHDLBasicId "isnull" +isnullId :: String +isnullId = "isnull" -- | replace function identifier -replaceId :: AST.VHDLId -replaceId = AST.unsafeVHDLBasicId "replace" +replaceId :: String +replaceId = "replace" -- | head function identifier -headId :: AST.VHDLId -headId = AST.unsafeVHDLBasicId "head" +headId :: String +headId = "head" -- | last function identifier -lastId :: AST.VHDLId -lastId = AST.unsafeVHDLBasicId "last" +lastId :: String +lastId = "last" -- | init function identifier -initId :: AST.VHDLId -initId = AST.unsafeVHDLBasicId "init" +initId :: String +initId = "init" -- | tail function identifier -tailId :: AST.VHDLId -tailId = AST.unsafeVHDLBasicId "tail" +tailId :: String +tailId = "tail" -- | take function identifier -takeId :: AST.VHDLId -takeId = AST.unsafeVHDLBasicId "take" +takeId :: String +takeId = "take" -- | drop function identifier -dropId :: AST.VHDLId -dropId = AST.unsafeVHDLBasicId "drop" +dropId :: String +dropId = "drop" -- | shiftl function identifier -shiftlId :: AST.VHDLId -shiftlId = AST.unsafeVHDLBasicId "shiftl" +shiftlId :: String +shiftlId = "shiftl" -- | shiftr function identifier -shiftrId :: AST.VHDLId -shiftrId = AST.unsafeVHDLBasicId "shiftr" +shiftrId :: String +shiftrId = "shiftr" -- | rotl function identifier -rotlId :: AST.VHDLId -rotlId = AST.unsafeVHDLBasicId "rotl" +rotlId :: String +rotlId = "rotl" -- | reverse function identifier -rotrId :: AST.VHDLId -rotrId = AST.unsafeVHDLBasicId "rotr" +rotrId :: String +rotrId = "rotr" -- | reverse function identifier -reverseId :: AST.VHDLId -reverseId = AST.unsafeVHDLBasicId "reverse" +reverseId :: String +reverseId = "reverse" -- | copy function identifier -copyId :: AST.VHDLId -copyId = AST.unsafeVHDLBasicId "copy" +copyId :: String +copyId = "copy" + +-- | map function identifier +mapId :: String +mapId = "map" + +-- | zipwith function identifier +zipWithId :: String +zipWithId = "zipWith" + +-- | foldl function identifier +foldlId :: String +foldlId = "foldl" + +-- | foldr function identifier +foldrId :: String +foldrId = "foldr" + +-- | zip function identifier +zipId :: String +zipId = "zip" + +-- | unzip function identifier +unzipId :: String +unzipId = "unzip" + +-- | hwxor function identifier +hwxorId :: String +hwxorId = "hwxor" + +-- | hwor function identifier +hworId :: String +hworId = "hwor" + +-- | hwnot function identifier +hwnotId :: String +hwnotId = "hwnot" + +-- | hwand function identifier +hwandId :: String +hwandId = "hwand" + +lengthTId :: String +lengthTId = "lengthT" ------------------ -- VHDL type marks ------------------ +-- | The Bit type mark +bitTM :: AST.TypeMark +bitTM = AST.unsafeVHDLBasicId "Bit" + -- | Stardard logic type mark std_logicTM :: AST.TypeMark std_logicTM = AST.unsafeVHDLBasicId "std_logic" @@ -179,4 +226,4 @@ naturalTM = AST.unsafeVHDLBasicId "natural" -- | integer TypeMark integerTM :: AST.TypeMark -integerTM = AST.unsafeVHDLBasicId "integer" \ No newline at end of file +integerTM = AST.unsafeVHDLBasicId "integer"