ExampleMixIds.hs revision bccea164bdfc2ddc3d1e20749bb5477a46eab3a6
8a77240a809197c92c0736c431b4b88947a7bac1Christian MaederModule : $Header$
8a77240a809197c92c0736c431b4b88947a7bac1Christian MaederDescription : standard mixfix identifier
adea2e45fa61f1097aadc490a0aeaf4831b729ccChristian MaederCopyright : (c) Christian Maeder and DFKI Bremen 2008
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till MossakowskiLicense : similar to LGPL, see HetCATS/LICENSE.txt or LIZENZ.txt
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till MossakowskiMaintainer : Christian.Maeder@dfki.de
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu ProdescuStability : experimental
2eeec5240b424984e3ee26296da1eeab6c6d739eChristian MaederPortability : portable
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till Mossakowskimixfix identifiers for testing CASL's and HasCASL's mixfix analysis
0095c7efbddd0ffeed6aaf8ec015346be161d819Till Mossakowskimodule Common.ExampleMixIds (stdOpsL, stdPreds, mkIds) where
09b431a868c79a92ae7c9bd141565f43f9034144Christian Maederimport qualified Data.Set as Set
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till MossakowskistdOpsL :: [String]
09b431a868c79a92ae7c9bd141565f43f9034144Christian Maeder [ "__^__", "__*__", "__+__", "[__]","__div__","__mod__", "__rem__"
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till Mossakowski , "__-__", "+__", "__E__", "__@@__", "[]", "__::__", "__:::__", "-__", "__!"
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till Mossakowski , "____p", "q____","____x____", "{____}"
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till Mossakowski , "repeat__until__", "while__do__od", "__none__but__", "__one__done"
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till Mossakowski , "A[a[c,d],b]", "B[a[c,d],b]", "__B[a[c,d],b]__"
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till Mossakowski , "a[c,d]", "__a[c,d]__", "A[a]", "A__B", "A__", "__[a]", "__p"
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till Mossakowski , "__ --> __", "__{__}--__-->{__}__", "__[__]__", "[__]__", "__[__]" ]
1a38107941725211e7c3f051f7a8f5e12199f03acmaederstdPredsL :: [String]
1a38107941725211e7c3f051f7a8f5e12199f03acmaeder [ "__<__", "__<=__", "__>__", "__>=__", "__!=__", "__<>__"
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian Maeder , "__/=__", "even__", "odd__", "__isEmpty", "__<=__<=__" ]
09b431a868c79a92ae7c9bd141565f43f9034144Christian MaedermkIds :: [String] -> Set.Set Id
09b431a868c79a92ae7c9bd141565f43f9034144Christian MaedermkIds = Set.fromList . map (parseString parseAnnoId)
df11e5eab86d8247f58e301d8f0a2c6ecf4c9541Till MossakowskistdPreds = mkIds stdPredsL