Safe Haskell | None |
---|
Postfix, or RPN, expression parsing.
This module parses RPN expressions where the operands are
predicates and the operators are one of and
, or
, or not
,
where and
and or
are binary and not
is unary.
Documentation
pushOperand :: Pdct a -> [Pdct a] -> [Pdct a]Source
pushOperator :: Operator -> [Pdct a] -> Exceptional Error [Pdct a]Source
pushTokens :: Foldable f => f (RPNToken a) -> Exceptional Error (Pdct a)Source