{- |
Module      :  ./Common/Keywords.hs
Description :  String constants for CASL keywords to be used for parsing
  and printing
Copyright   :  (c) Christian Maeder and Uni Bremen 2002-2003
License     :  GPLv2 or higher, see LICENSE.txt

Maintainer  :  Christian.Maeder@dfki.de
Stability   :  provisional
Portability :  portable

String constants for keywords to be used for parsing and printing

- all identifiers are mixed case (i.e. the keyword followed by  a capital S)

- see <http://www.cofi.info/Documents/CASL/Summary/> from 25 March 2001,
  C.4 Lexical Syntax
-}

module Common.Keywords where

-- * context dependend keywords

-- | sub sort indicator
lessS :: String
lessS :: String
lessS = "<"

-- | modifier for 'existsS'
exMark :: String
exMark :: String
exMark = "!"

-- | modifier for 'funS' or 'colonS'
quMark :: String
quMark :: String
quMark = "?"

-- * type constructors

-- | total function arrow
funS :: String
funS :: String
funS = "->"

-- | partial function arrow
pFun :: String
pFun :: String
pFun = String
funS String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
quMark

-- | ascii product type sign
prodS :: String
prodS :: String
prodS = "*"

-- | alternative latin1 product type sign
timesS :: String
timesS :: String
timesS = "\215"

-- * symbol keywords

-- | the colon sign
colonS :: String
colonS :: String
colonS = ":"

equiS :: String
equiS :: String
equiS = "<->"

-- | the dot sign (ascii)
dotS :: String
dotS :: String
dotS = "."

-- | the alternative latin1 centered dot sign
cDot :: String
cDot :: String
cDot = "\183"

-- | the vertical bar
barS :: String
barS :: String
barS = "|"

-- | arrow started with a bar
mapsTo :: String
mapsTo :: String
mapsTo = "|->"

-- | two colons and an equal sign
defnS :: String
defnS :: String
defnS = "::="

-- | a colon with a question mark
colonQuMark :: String
colonQuMark :: String
colonQuMark = String
colonS String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
quMark

-- | the exists keyword with an exclamation mark
existsUnique :: String
existsUnique :: String
existsUnique = String
existsS String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
exMark

-- * comment keywords

-- | one percent sign
percentS :: String
percentS :: String
percentS = "%"

-- | two percent signs (for line comments)
percents :: String
percents :: String
percents = String
percentS String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
percentS

-- * formula symbols

-- | implication arrow (equal and greater)
implS :: String
implS :: String
implS = "=>"

-- | equivalent sign
equivS :: String
equivS :: String
equivS = "<=>"

-- | the alternative latin1 negation sign for not
negS :: String
negS :: String
negS = "\172"

-- | logical and using slashes
lAnd :: String
lAnd :: String
lAnd = "/\\"

-- | logical or using slashes
lOr :: String
lOr :: String
lOr = "\\/"

-- * further HasCASL key signs

-- | assign sign (colon and equal)
assignS :: String
assignS :: String
assignS = ":="

-- | minus sign (for variance)
minusS :: String
minusS :: String
minusS = "-"

-- | plus sign (for variance)
plusS :: String
plusS :: String
plusS = "+"

-- | total continuous function arrow
contFun :: String
contFun :: String
contFun = String
minusS String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
funS

-- | partial continuous function arrow
pContFun :: String
pContFun :: String
pContFun = String
minusS String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
pFun

-- | lambda sign (backslash)
lamS :: String
lamS :: String
lamS = "\\"

-- | at sign (for as pattern)
asP :: String
asP :: String
asP = "@"

-- | Here sign
hereP :: String
hereP :: String
hereP = "Here"

-- | Bind sign
bindP :: String
bindP :: String
bindP = "Bind"


-- | assign sign in monad notation
rightArrow :: String
rightArrow :: String
rightArrow = "<-"

-- * further HasCASL keywords

-- | the new keyword fun ('funS' is already defined differently)
functS :: String
functS :: String
functS = "fun"

-- * CoCasl key signs

-- | the diamond sign (less and greater)
diamondS :: String
diamondS :: String
diamondS = "<>"

-- | the greater sign
greaterS :: String
greaterS :: String
greaterS = ">"


maxInclusiveS :: String
maxInclusiveS :: String
maxInclusiveS = "maxInclusive"

maxExclusiveS :: String
maxExclusiveS :: String
maxExclusiveS = "maxExclusive"

-- * OWL key signs

minInclusiveS :: String
minInclusiveS :: String
minInclusiveS = "minInclusive"


minExclusiveS :: String
minExclusiveS :: String
minExclusiveS = "minExclusive"


lessEq :: String
lessEq :: String
lessEq = "<="

greaterEq :: String
greaterEq :: String
greaterEq = ">="

-- * CspCasl key signs

-- | Prefix processes
prefix_procS :: String
prefix_procS :: String
prefix_procS = "->"

-- | sequential process operator
sequentialS :: String
sequentialS :: String
sequentialS = ";"

-- | interleaving parallel operator
interleavingS :: String
interleavingS :: String
interleavingS = "|||"

-- | synchronous parallel operator
synchronousS :: String
synchronousS :: String
synchronousS = "||"

-- | Open generalised parallel
genpar_openS :: String
genpar_openS :: String
genpar_openS = "[|"

-- | Close generalised parallel
genpar_closeS :: String
genpar_closeS :: String
genpar_closeS = "|]"

-- | Open alpabetised parallel
alpar_openS :: String
alpar_openS :: String
alpar_openS = "["

-- | Separator in alpabetised parallel
alpar_sepS :: String
alpar_sepS :: String
alpar_sepS = "||"

-- | Close alpabetised parallel
alpar_closeS :: String
alpar_closeS :: String
alpar_closeS = "]"

-- | External choice
external_choiceS :: String
external_choiceS :: String
external_choiceS = "[]"

-- | Internal choice
internal_choiceS :: String
internal_choiceS :: String
internal_choiceS = "|~|"

-- | Hiding (process)
hiding_procS :: String
hiding_procS :: String
hiding_procS = "\\"

-- | Open a renaming (process)
ren_proc_openS :: String
ren_proc_openS :: String
ren_proc_openS = "[["

-- | Close a renaming (process)
ren_proc_closeS :: String
ren_proc_closeS :: String
ren_proc_closeS = "]]"

-- * logic definition symbols

newlogicS :: String
newlogicS :: String
newlogicS = "newlogic"

metaS :: String
metaS :: String
metaS = "meta"

foundationS :: String
foundationS :: String
foundationS = "foundation"

syntaxS :: String
syntaxS :: String
syntaxS = "syntax"

patternsS :: String
patternsS :: String
patternsS = "patterns"

modelsS :: String
modelsS :: String
modelsS = "models"

proofsS :: String
proofsS :: String
proofsS = "proofs"

newcomorphismS :: String
newcomorphismS :: String
newcomorphismS = "newcomorphism"

sourceS :: String
sourceS :: String
sourceS = "source"

targetS :: String
targetS :: String
targetS = "target"

-- * DOL keywords

alignArityBackwardS :: String
alignArityBackwardS :: String
alignArityBackwardS = "align-arity-backward"

alignArityForwardS :: String
alignArityForwardS :: String
alignArityForwardS = "align-arity-forward"

alignmentS :: String
alignmentS :: String
alignmentS = "alignment"

combineS :: String
combineS :: String
combineS = "combine"

excludingS :: String
excludingS :: String
excludingS = "excluding"

entailmentS :: String
entailmentS :: String
entailmentS = "entailment"

entailsS :: String
entailsS :: String
entailsS = "entails"

forS :: String
forS :: String
forS = "for"

interpretationS :: String
interpretationS :: String
interpretationS = "interpretation"

moduleS :: String
moduleS :: String
moduleS = "module"

ontologyS :: String
ontologyS :: String
ontologyS = "ontology"

networkS :: String
networkS :: String
networkS = "network"

patternS :: String
patternS :: String
patternS = "pattern"

relationS :: String
relationS :: String
relationS = "relation"

serializationS :: String
serializationS :: String
serializationS = "serialization"

-- * frameworks

lfS :: String
lfS :: String
lfS = "LF"

isabelleS :: String
isabelleS :: String
isabelleS = "Isabelle"

maudeS :: String
maudeS :: String
maudeS = "Maude"

-- * MMT symbols

sigDelimS :: String
sigDelimS :: String
sigDelimS = ".."

structDelimS :: String
structDelimS :: String
structDelimS = "/"

-- * Twelf conventions

-- non breaking space
whiteChars :: String
whiteChars :: String
whiteChars = "\n\r\t\v\f \160"

-- special characters permitted in a Twelf symbol name
twelfSymChars :: String
twelfSymChars :: String
twelfSymChars = "_-+*/<=>@^"

-- special characters permitted in a Twelf declaration
twelfDeclChars :: String
twelfDeclChars :: String
twelfDeclChars = String
twelfSymChars String -> String -> String
forall a. [a] -> [a] -> [a]
++ ":{}[]()"

-- special characters permitted in a Twelf declaration of multiple symbols
twelfMultDeclChars :: String
twelfMultDeclChars :: String
twelfMultDeclChars = String
twelfDeclChars String -> String -> String
forall a. [a] -> [a] -> [a]
++ ","

-- * letter keywords taken from Keywords.txt

andS :: String
andS :: String
andS = "and"

archS :: String
archS :: String
archS = "arch"

asS :: String
asS :: String
asS = "as"

assocS :: String
assocS :: String
assocS = "assoc"

axiomS :: String
axiomS :: String
axiomS = "axiom"

behaviourallyS :: String
behaviourallyS :: String
behaviourallyS = "behaviourally"

caseS :: String
caseS :: String
caseS = "case"

classS :: String
classS :: String
classS = "class"

closedS :: String
closedS :: String
closedS = "closed"

closedworldS :: String
closedworldS :: String
closedworldS = "closed-world"

cofreeS :: String
cofreeS :: String
cofreeS = "cofree"

cogeneratedS :: String
cogeneratedS :: String
cogeneratedS = "cogenerated"

commS :: String
commS :: String
commS = "comm"

cotypeS :: String
cotypeS :: String
cotypeS = "cotype"

dataS :: String
dataS :: String
dataS = "data"

defS :: String
defS :: String
defS = "def"

derivingS :: String
derivingS :: String
derivingS = "deriving"

displayS :: String
displayS :: String
displayS = "display"

doS :: String
doS :: String
doS = "do"

elseS :: String
elseS :: String
elseS = "else"

emptyS :: String
emptyS :: String
emptyS = "empty"

endS :: String
endS :: String
endS = "end"

equivalenceS :: String
equivalenceS :: String
equivalenceS = "equivalence"

esortS :: String
esortS :: String
esortS = "esort"

etypeS :: String
etypeS :: String
etypeS = "etype"

existsS :: String
existsS :: String
existsS = "exists"

extractS :: String
extractS :: String
extractS = "extract"

falseS :: String
falseS :: String
falseS = "false"

fitS :: String
fitS :: String
fitS = "fit"

flexibleS :: String
flexibleS :: String
flexibleS = "flexible"

floatingS :: String
floatingS :: String
floatingS = "floating"

forallS :: String
forallS :: String
forallS = "forall"

forgetS :: String
forgetS :: String
forgetS = "forget"

freeS :: String
freeS :: String
freeS = "free"

fromS :: String
fromS :: String
fromS = "from"

generatedS :: String
generatedS :: String
generatedS = "generated"

getS :: String
getS :: String
getS = "get"

givenS :: String
givenS :: String
givenS = "given"

hideS :: String
hideS :: String
hideS = "hide"

keepS :: String
keepS :: String
keepS = "keep"

approximateS :: String
approximateS :: String
approximateS = "approximate"

idemS :: String
idemS :: String
idemS = "idem"

ifS :: String
ifS :: String
ifS = "if"

inS :: String
inS :: String
inS = "in"

instanceS :: String
instanceS :: String
instanceS = "instance"

internalS :: String
internalS :: String
internalS = "internal"

intersectS :: String
intersectS :: String
intersectS = "intersect"

lambdaS :: String
lambdaS :: String
lambdaS = "lambda"

left_assocS :: String
left_assocS :: String
left_assocS = "left_assoc"

letS :: String
letS :: String
letS = "let"

libraryS :: String
libraryS :: String
libraryS = "library"

listS :: String
listS :: String
listS = "list"

localS :: String
localS :: String
localS = "local"

logicS :: String
logicS :: String
logicS = "logic"

minimizeS :: String
minimizeS :: String
minimizeS = "minimize"

modalitiesS :: String
modalitiesS :: String
modalitiesS = "modalities"

modalityS :: String
modalityS :: String
modalityS = "modality"


notS :: String
notS :: String
notS = "not"

numberS :: String
numberS :: String
numberS = "number"

ofS :: String
ofS :: String
ofS = "of"

opS :: String
opS :: String
opS = "op"

precS :: String
precS :: String
precS = "prec"

predS :: String
predS :: String
predS = "pred"

prefixS :: String
prefixS :: String
prefixS = "prefix"

programS :: String
programS :: String
programS = "program"

propS :: String
propS :: String
propS = "prop"

refinedS :: String
refinedS :: String
refinedS = "refined"

refinementS :: String
refinementS :: String
refinementS = "refinement"

rejectS :: String
rejectS :: String
rejectS = "reject"

removeS :: String
removeS :: String
removeS = "remove"

resultS :: String
resultS :: String
resultS = "result"

revealS :: String
revealS :: String
revealS = "reveal"

right_assocS :: String
right_assocS :: String
right_assocS = "right_assoc"

rigidS :: String
rigidS :: String
rigidS = "rigid"

sS :: String
sS :: String
sS = "s"

selectS :: String
selectS :: String
selectS = "select"

sortS :: String
sortS :: String
sortS = "sort"

specS :: String
specS :: String
specS = "spec"

stringS :: String
stringS :: String
stringS = "string"

structS :: String
structS :: String
structS = "struct"

termS :: String
termS :: String
termS = "term"

thenS :: String
thenS :: String
thenS = "then"

toS :: String
toS :: String
toS = "to"

trueS :: String
trueS :: String
trueS = "true"

typeS :: String
typeS :: String
typeS = "type"

unitS :: String
unitS :: String
unitS = "unit"

varS :: String
varS :: String
varS = "var"

varsS :: String
varsS :: String
varsS = "vars"

versionS :: String
versionS :: String
versionS = "version"

viaS :: String
viaS :: String
viaS = "via"

viewS :: String
viewS :: String
viewS = "view"

whenS :: String
whenS :: String
whenS = "when"

whereS :: String
whereS :: String
whereS = "where"

withS :: String
withS :: String
withS = "with"

withinS :: String
withinS :: String
withinS = "within"