-- 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.2 -- | 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 -> a -> a, t -> a -> a -> a) -> (t -> TokenType) -> [t] -> a -- | Fold expression in postfix form foldfix :: (t -> a, t -> a -> a, t -> a -> a -> 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