Portability | portable |
---|---|
Maintainer | Simon Meier <iridcode@gmail.com> |
Safe Haskell | None |
Tokenizing infrastructure
- symbol :: String -> Parser String
- symbol_ :: String -> Parser ()
- dot :: Parser ()
- comma :: Parser ()
- colon :: Parser ()
- natural :: Parser Integer
- naturalSubscript :: Parser Integer
- formalComment :: Parser (String, String)
- identifier :: Parser String
- indexedIdentifier :: Parser (String, Integer)
- freshName :: Parser String
- pubName :: Parser String
- sortedLVar :: [LSort] -> Parser LVar
- lvar :: Parser LVar
- msgvar :: Parser LVar
- nodevar :: Parser NodeId
- opExp :: Parser ()
- opMult :: Parser ()
- opEqual :: Parser ()
- opLess :: Parser ()
- opAt :: Parser ()
- opForall :: Parser ()
- opExists :: Parser ()
- opImplies :: Parser ()
- opLEquiv :: Parser ()
- opLAnd :: Parser ()
- opLOr :: Parser ()
- opLNot :: Parser ()
- opLFalse :: Parser ()
- opLTrue :: Parser ()
- opRequires :: Parser PremIdx
- opChain :: Parser ()
- equalSign :: Parser ()
- opSharp :: Parser ()
- opBang :: Parser ()
- opSlash :: Parser ()
- opMinus :: Parser ()
- opPlus :: Parser ()
- opLeftarrow :: Parser ()
- opRightarrow :: Parser ()
- opLongleftarrow :: Parser ()
- opLongrightarrow :: Parser ()
- braced :: Parser a -> Parser a
- parens :: Parser a -> Parser a
- angled :: Parser a -> Parser a
- brackets :: Parser a -> Parser a
- singleQuoted :: Parser a -> Parser a
- doubleQuoted :: Parser a -> Parser a
- commaSep :: Parser a -> Parser [a]
- commaSep1 :: Parser a -> Parser [a]
- list :: Parser a -> Parser [a]
- type Parser a = Parsec String MaudeSig a
- parseFile :: Parser a -> FilePath -> IO a
- parseString :: FilePath -> Parser a -> String -> Either ParseError a
Symbols
naturalSubscript :: Parser IntegerSource
Parse a Unicode-subscripted natural number.
Formal comments
formalComment :: Parser (String, String)Source
A formal comment; i.e., (header, body)
Identifiers and Variables
identifier :: Parser StringSource
Parse an identifier as a string
indexedIdentifier :: Parser (String, Integer)Source
Parse an identifier possibly indexed with a number.
sortedLVar :: [LSort] -> Parser LVarSource
Parse a logical variable with the given sorts allowed.
Operators
opRequires :: Parser PremIdxSource
The requires-a-premise operator, ▶ subscript-id
.
Pseudo operators
opLeftarrow :: Parser ()Source
The leftarrow operator <--
.
opRightarrow :: Parser ()Source
The rightarrow operator -->
.
opLongleftarrow :: Parser ()Source
The longleftarrow operator <--
.
opLongrightarrow :: Parser ()Source
The longrightarrow operator -->
.
Parentheses/quoting
singleQuoted :: Parser a -> Parser aSource
Between single quotes.
doubleQuoted :: Parser a -> Parser aSource
Between double quotes.
List parsing
Basic Parsing
:: FilePath | |
-> Parser a | |
-> String | Input string. |
-> Either ParseError a |
Run a given parser on a given string.