Simple fix-expression parser
If in doubt, just use parsefix
Documentation
TokenPlain | Plain, i.e. operand |
TokenLParenth | |
TokenRParenth | |
TokenOper Fixity Integer | Operator, with fixity and precedence |
parsefix :: (t -> a, t -> a -> a, t -> a -> a -> a) -> (t -> TokenType) -> [t] -> aSource
Shunt and Fold