Copyright | (c) Henry J. Wylde, 2015 |
---|---|
License | BSD3 |
Maintainer | public@hjwylde.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Abstract syntax tree nodes.
Instances of Pretty
are provided for pretty printing.
Nodes
A program is a module identifier (list of Id'
s) and a list of declarations.
A declaration.
A statement.
A complex expression.
ApplicationExpr Id [Expr] | A function name to call and the arguments to pass as parameters. |
BinaryExpr BinaryOp Expr Expr | A binary operation. |
ListExpr [Expr] | A list expression. |
TypedExpr Type Expr | A typed expression. See Language.Qux.Annotated.TypeResolver. |
UnaryExpr UnaryOp Expr | A unary operation. |
ValueExpr Value | A raw value. |
A binary operator.
A unary operator.