Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data HoareParseError Source #
UnmatchedQuote | |
UnexpectedInput | |
MalformedExpression String | |
MalformedTypeSpec String | |
ParseError [Token] | |
LexError String |
Instances
prettyTokens :: [Token] -> String Source #
type HoareSpecParser = Either HoareParseError Source #
TQuoted String | |
TStaticAssert | |
TPre | |
TPost | |
TInvariant | |
TSeq | |
TRParen | |
TLParen | |
TAnd | |
TOr | |
TImpl | |
TEquiv | |
TNot | |
TTrue | |
TFalse | |
TDeclAux | |
TName String | |
TDColon |
Instances
Eq Token Source # | |
Data Token Source # | |
Defined in Camfort.Specification.Hoare.Parser.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Token -> c Token # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Token # dataTypeOf :: Token -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Token) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Token) # gmapT :: (forall b. Data b => b -> b) -> Token -> Token # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Token -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Token -> r # gmapQ :: (forall d. Data d => d -> u) -> Token -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Token -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Token -> m Token # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Token -> m Token # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Token -> m Token # | |
Ord Token Source # | |
Show Token Source # | |
parseExpression :: String -> HoareSpecParser (Expression ()) Source #
parseTypeSpec :: String -> HoareSpecParser (TypeSpec ()) Source #