Keywords.hs revision 743178d5294deadc2ed15e56b5e58ca0e7101fe4
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiasModule : $Header$
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens ElknerDescription : String constants for CASL keywords to be used for parsing
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiasCopyright : (c) Christian Maeder and Uni Bremen 2002-2003
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von SchroederLicense : GPLv2 or higher, see LICENSE.txt
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiasMaintainer : Christian.Maeder@dfki.de
ad1df93673cf323534cdfe18981ad5daae4c90c0Jonathan von SchroederStability : provisional
1e622ddf5a057555db1924ddc88475c695c6f7f2Alexis TsogiasPortability : portable
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiasString constants for keywords to be used for parsing and printing
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis Tsogias- all identifiers are mixed case (i.e. the keyword followed by a capital S)
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis Tsogias- see <http://www.cofi.info/Documents/CASL/Summary/> from 25 March 2001,
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis Tsogias C.4 Lexical Syntax
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis Tsogias-- * context dependend keywords
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroeder-- | sub sort indicator
e16b3696b2c173aac14200321868ed81b8f7dc69Christian MaederlessS :: String
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis Tsogias-- | modifier for 'existsS'
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiasexMark :: String
4e95ffc23b9c5f0b5980ab6f1cacbe7bd9789851Alexis Tsogias-- | modifier for 'funS' or 'colonS'
421def3c7b0b9ca7762f809a2c57c6ee74495ffaJonathan von SchroederquMark :: String
93c8c4a8ce75cc2e02e03468a97b896f149d26ceAlexis Tsogias-- * type constructors
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | total function arrow
9503f59b8e16c517ba75df2512b80b354759ad1aJonathan von Schroeder-- | partial function arrow
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiaspFun :: String
e16b3696b2c173aac14200321868ed81b8f7dc69Christian MaederpFun = funS ++ quMark
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis Tsogias-- | ascii product type sign
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiasprodS :: String
beb399aad2f2d329dea36508625352fddee3c302Christian Maeder-- | alternative latin1 product type sign
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis TsogiastimesS :: String
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis TsogiastimesS = "\215"
e16b3696b2c173aac14200321868ed81b8f7dc69Christian Maeder-- * symbol keywords
9d05f30775dd499da9e262b5c199b63c86cc239bJonathan von Schroeder-- | the colon sign
9d05f30775dd499da9e262b5c199b63c86cc239bJonathan von SchroedercolonS :: String
8394b397aadaf0c2bfc19c0628f17f83f031a759Jonathan von Schroeder-- | the dot sign (ascii)
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiasdotS :: String
91673dab8e4e249ffb3efe5edab8351dfaf4977dJonathan von Schroeder-- | the alternative latin1 centered dot sign
9503f59b8e16c517ba75df2512b80b354759ad1aJonathan von Schroeder-- | the vertical bar
8394b397aadaf0c2bfc19c0628f17f83f031a759Jonathan von Schroeder-- | arrow started with a bar
1e622ddf5a057555db1924ddc88475c695c6f7f2Alexis TsogiasmapsTo :: String
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis TsogiasmapsTo = "|->"
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis Tsogias-- | two colons and an equal sign
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis TsogiasdefnS :: String
1566df29333319b713031b86c7d18171e5a009bdJonathan von Schroeder-- | a colon with a question mark
f88f637f3c7ff472142b07dcc12230375a5f1c28Christian MaedercolonQuMark :: String
e21e5f0fa66bf80e14cfd3f571e09b3952e46ad9Alexis TsogiascolonQuMark = colonS ++ quMark
e16b3696b2c173aac14200321868ed81b8f7dc69Christian Maeder-- | the exists keyword with an exclamation mark
e16b3696b2c173aac14200321868ed81b8f7dc69Christian MaederexistsUnique :: String
e16b3696b2c173aac14200321868ed81b8f7dc69Christian MaederexistsUnique = existsS ++ exMark
1e622ddf5a057555db1924ddc88475c695c6f7f2Alexis Tsogias-- * comment keywords
409eb8adf8c7ee0609aef256b67f5dfad2fb6386Alexis Tsogias-- | one percent sign
e24ad3f655daa60ddabe690e4b11de3187996c16cmaederpercentS :: String
e24ad3f655daa60ddabe690e4b11de3187996c16cmaederpercentS = "%"
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | two percent signs (for line comments)
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroederpercents :: String
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroederpercents = percentS ++ percentS
8c7aa750542dcadb94b971be712564a9a8f1d189Christian Maeder-- * formula symbols
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | implication arrow (equal and greater)
8c030738bc90ffb417074a9502c0bac2ed414e2eJonathan von Schroeder-- | equivalent sign
55dfa79a16e5f0ddb60bceab3717c07e62e65846Jonathan von SchroederequivS :: String
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | the alternative latin1 negation sign for not
87d946b3c13ffd7f6391aa796e786c2b31b122b1Jonathan von Schroeder-- | logical and using slashes
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | logical or using slashes
55dfa79a16e5f0ddb60bceab3717c07e62e65846Jonathan von Schroeder-- * further HasCASL key signs
8c7aa750542dcadb94b971be712564a9a8f1d189Christian Maeder-- | assign sign (colon and equal)
55dfa79a16e5f0ddb60bceab3717c07e62e65846Jonathan von SchroederassignS :: String
8c7aa750542dcadb94b971be712564a9a8f1d189Christian Maeder-- | minus sign (for variance)
55dfa79a16e5f0ddb60bceab3717c07e62e65846Jonathan von SchroederminusS :: String
8c7aa750542dcadb94b971be712564a9a8f1d189Christian Maeder-- | plus sign (for variance)
0f1637f1e645957ce9e29926d3d2607ea8498961Jonathan von Schroeder-- | total continuous function arrow
0f1637f1e645957ce9e29926d3d2607ea8498961Jonathan von SchroedercontFun :: String
0f1637f1e645957ce9e29926d3d2607ea8498961Jonathan von SchroedercontFun = minusS ++ funS
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | partial continuous function arrow
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von SchroederpContFun :: String
8c7aa750542dcadb94b971be712564a9a8f1d189Christian MaederpContFun = minusS ++ pFun
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | lambda sign (backslash)
3a9fce5398f4621558ca220c66c87cee59adc258Jonathan von Schroeder-- | at sign (for as pattern)
-- * letter keywords taken from Keywords.txt