Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module contains the types for the abstract syntax tree.
Synopsis
- type Program = [Stmt]
- data Stmt
- = AssignStmt {
- assignVar :: String
- assignExpr :: Expr
- | IfStmt { }
- | RepeatStmt {
- repeatTimesExpr :: Expr
- repeatBody :: [Stmt]
- = AssignStmt {
- data Op
- = Add
- | Sub
- | Mul
- | Div
- | Pow
- | Equal
- | Neq
- | LessThan
- | LessOrEqual
- | GreaterThan
- | GreaterOrEqual
- data Expr
Documentation
A program is a sequence of statements.
AssignStmt | |
| |
IfStmt | |
RepeatStmt | |
|
Operators.
Add | The + operator. |
Sub | The - operator. |
Mul | The * operator. |
Div | The / operator. |
Pow | The power of operator. |
Equal | The == operator. |
Neq | The /= operator. |
LessThan | The < operator. |
LessOrEqual | The <= operator. |
GreaterThan | The > operator. |
GreaterOrEqual | The >= operator. |