Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Hpp.Expr
Description
An expression language corresponding to the subset of C syntax that may be used in preprocessor conditional directives. See https://gcc.gnu.org/onlinedocs/cpp/If.html
Documentation
Expressions are literal values, binary operators applied to two sub-expressions, or unary operators applied to a single sub-expression.
readLitInt :: String -> Maybe Int Source
Read a literal integer. These may be decimal, octal, or
hexadecimal, and may have a case-insensitive suffix of u
, l
, or
ul
.
renderExpr :: Expr -> String Source
Pretty-print an Expr
to something semantically equivalent to the original
C syntax (some parentheses may be added).