-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple fix-expression parser -- -- Simple fix-expression parser @package fix-parser-simple @version 15318.1 -- | Simple fix-expression parser -- -- If in doubt, just use parsefix module Parser.Fix.Simple data TokenType -- | Plain, i.e. operand TokenPlain :: TokenType TokenLParenth :: TokenType TokenRParenth :: TokenType -- | Operator, with fixity and precedence TokenOper :: Fixity -> Integer -> TokenType -- | Fixity/Associativity data Fixity Prefix :: Fixity InfixLeft :: Fixity InfixRight :: Fixity InfixNull :: Fixity Postfix :: Fixity -- | Shunt and Fold parsefix :: (t -> a, t -> t -> a, t -> t -> t -> a) -> (t -> TokenType) -> [t] -> [a] -- | Fold expression in postfix form foldfix :: (t -> a, t -> t -> a, t -> t -> t -> a) -> (t -> TokenType) -> [t] -> [a] -- | Change from infix to postfix form -- -- Precedence at start is zero shunt :: (t -> TokenType) -> [t] -> [t] instance Eq Fixity instance Eq TokenType