Safe Haskell | None |
---|---|
Language | Haskell2010 |
Parsing polynomials and polynomial expressions
Synopsis
- parseExpr :: forall vars. VariableSet vars => Proxy vars -> Text -> Maybe (Expr VarIdx)
- parseGenPoly :: forall vars. VariableSet vars => Proxy vars -> Text -> Maybe (GenPoly Integer VarIdx)
- parseStringExpr :: Text -> Either String (Expr Var)
- parseStringGenPoly :: Text -> Either String (GenPoly Integer Var)
- data Parser a
- runParser :: Parser a -> Text -> Either String (a, Text)
- (<||>) :: Parser a -> Parser a -> Parser a
- try :: Parser a -> Parser (Maybe a)
- many :: Alternative f => f a -> f [a]
- many1 :: Parser a -> Parser [a]
- charP :: (Char -> Bool) -> Parser Char
- charP_ :: (Char -> Bool) -> Parser ()
- charsP :: (Char -> Bool) -> Parser [Char]
- spacesP_ :: Parser ()
- eofP :: Parser ()
- signP :: Parser Sign
- natP :: Parser Int
- integerP :: Parser Integer
- identifierP :: Parser String
- exprP :: Parser (Expr Var)
- genPolyP :: Parser (GenPoly Integer Var)
Parsing polynomials
parseGenPoly :: forall vars. VariableSet vars => Proxy vars -> Text -> Maybe (GenPoly Integer VarIdx) Source #
Parser monad
many :: Alternative f => f a -> f [a] #
Zero or more.