Copyright | (c) Christian Maeder and Uni Bremen 2002-2004 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Parser for CASL Id
s based on Common.Lexer
- casl_reserved_ops :: [String]
- formula_ops :: [String]
- casl_reserved_fops :: [String]
- casl_basic_reserved_words :: [String]
- casl_structured_reserved_words :: [String]
- criticalKeywords :: [String]
- terminatingKeywords :: [String]
- startingKeywords :: [String]
- otherStartKeywords :: [String]
- continuationKeywords :: [String]
- casl_reserved_words :: [String]
- formula_words :: [String]
- casl_reserved_fwords :: [String]
- sid :: ([String], [String]) -> GenParser Char st Token
- braceP :: GenParser Char st [Token] -> GenParser Char st [Token]
- bracketP :: GenParser Char st [Token] -> GenParser Char st [Token]
- innerMix1 :: ([String], [String]) -> GenParser Char st [Token]
- innerMix2 :: ([String], [String]) -> GenParser Char st [Token]
- innerList :: ([String], [String]) -> GenParser Char st [Token]
- topMix1 :: ([String], [String]) -> GenParser Char st [Token]
- topMix2 :: ([String], [String]) -> GenParser Char st [Token]
- topMix3 :: ([String], [String]) -> GenParser Char st [Token]
- afterPlace :: ([String], [String]) -> GenParser Char st [Token]
- middle :: ([String], [String]) -> GenParser Char st [Token]
- tokStart :: ([String], [String]) -> GenParser Char st [Token]
- start :: ([String], [String]) -> GenParser Char st [Token]
- comps :: ([String], [String]) -> GenParser Char st ([Id], Range)
- mixId :: ([String], [String]) -> ([String], [String]) -> GenParser Char st Id
- casl_keys :: [String] -> ([String], [String])
- parseId :: [String] -> GenParser Char st Id
- consId :: [String] -> GenParser Char st Id
- sortId :: [String] -> GenParser Char st Id
- varId :: [String] -> GenParser Char st Token
- nonSkippingSimpleId :: GenParser Char st Token
- simpleId :: GenParser Char st Token
- quMarkT :: GenParser Char st Token
- colonST :: GenParser Char st Token
- crossT :: GenParser Char st Token
Casl keyword lists
casl_reserved_ops :: [String]
reserved signs
formula_ops :: [String]
these formula signs are legal in terms, but illegal in declarations
casl_reserved_fops :: [String]
all reseverd signs
casl_basic_reserved_words :: [String]
reserved keywords
casl_structured_reserved_words :: [String]
reserved keywords
criticalKeywords :: [String]
keywords terminating a basic spec or starting a new library item
terminatingKeywords :: [String]
keywords terminating a basic spec
startingKeywords :: [String]
keywords starting a library item
otherStartKeywords :: [String]
keywords that may follow a defining equal sign
continuationKeywords :: [String]
other intermediate keywords
casl_reserved_words :: [String]
reserved keywords
formula_words :: [String]
these formula words are legal in terms, but illegal in declarations
casl_reserved_fwords :: [String]
all reserved words
a single Token
parser taking lists of key symbols and words as parameter
sid :: ([String], [String]) -> GenParser Char st Token
a simple Token
parser depending on reserved signs and words
(including a quoted char, dot-words or a single digit)
Token
lists parsers
braceP :: GenParser Char st [Token] -> GenParser Char st [Token]
balanced mixfix components within braces
bracketP :: GenParser Char st [Token] -> GenParser Char st [Token]
balanced mixfix components within square brackets
innerMix2 :: ([String], [String]) -> GenParser Char st [Token]
mixfix components not starting with a sid
(possibly places)
innerList :: ([String], [String]) -> GenParser Char st [Token]
any mixfix components within braces or brackets
middle :: ([String], [String]) -> GenParser Char st [Token]
places possibly followed by other (afterPlace
) mixfix components
tokStart :: ([String], [String]) -> GenParser Char st [Token]
many (balanced, top-level) mixfix components (afterPlace
)
possibly interspersed with multiple places (placeT
)
start :: ([String], [String]) -> GenParser Char st [Token]
any (balanced, top-level) mixfix components
possibly starting with places but no single placeT
only.
parser for mixfix and compound Id
s
casl_keys :: [String] -> ([String], [String])
the Casl key strings (signs first) with additional keywords
parser for simple Id
s
nonSkippingSimpleId :: GenParser Char st Token
non-skipping version for simple ids