Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type LText = Text
- data PHP
- = RawSyntax Text
- | Bareword Text
- | Variable Text
- | SQString Text
- | Int Int
- | Float Double
- | Operator Text
- | Parenthesized PHP
- | StmtBlock [PHP]
- | List [PHP]
- | Dict [(PHP, PHP)]
- | Assign PHP PHP
- | Binop PHP PHP PHP
- | Call PHP [PHP]
- | Lookup PHP PHP
- | Lambda [Text] [PHP]
- | Ternary PHP PHP PHP
- | Statement PHP
- | Return PHP
- writeBuilder :: PHP -> Builder
- writeText :: PHP -> LText
- escapeSQ :: Text -> Text
- escapeCharSQ :: Char -> Text
- exprToPHP :: Expression a -> PHP
Documentation
Concrete PHP syntax (or rather, the subset we use)
RawSyntax Text | whatever |
Bareword Text | foobar |
Variable Text | $foobar |
SQString Text |
|
Int Int | 23 |
Float Double | 23.42 |
Operator Text | + |
Parenthesized PHP | |
StmtBlock [PHP] | |
List [PHP] | |
Dict [(PHP, PHP)] | |
Assign PHP PHP | |
Binop PHP PHP PHP | |
Call PHP [PHP] | |
Lookup PHP PHP | |
Lambda [Text] [PHP] | |
Ternary PHP PHP PHP | |
Statement PHP | |
Return PHP |
writeBuilder :: PHP -> Builder Source #
escapeCharSQ :: Char -> Text Source #
exprToPHP :: Expression a -> PHP Source #