| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.CSS.Preprocessor.Conditions.Expr
Description
Evaluates CSS media queries for import & media.
INTERNAL MODULE
Documentation
Operators understood by media queries.
Constructors
| And | Is true if both operands are true |
| Or | Is true if either operand is true |
| Not | Is true if it's operand isn't. |
| Var Text | Queries the value of an externally-specified parameter. |
| Tok Token | Tokens to be evaluated as specified by caller. |
| MkRatio | Pushes a ratio value to stack, for querying screensize. |
| Less | Is the left operand smaller than right? |
| LessEq | Is the left operand smaller or the same as right? |
| Equal | Are the operands the same? |
| Greater | Is the left operand bigger than right? |
| GreaterEq | Is the left operand bigger or the same as right? |
parse :: Token -> [Token] -> (Expr, [Token]) Source #
Parses a media query to postorder form, returning the tokens after the given delimiter.
parse' :: [Token] -> [(Op, Int)] -> Expr Source #
Parses a media query to postorder form, given an operator stack.