forth-hll-0.1.0.0: A simple eDSL for generating arrayForth code.

Safe HaskellNone

Language.ArrayForth.HLL.AST

Documentation

data Forth next Source

Constructors

Forth Expr next 

Instances

Functor Forth 
Num AST 
IsString AST 
Show next => Show (Forth next) 

type AST = Free Forth ()Source

data Operator Source

Constructors

Add 
Sub 
Mul 
Lt 
Gt 
LtE 
GtE 
Eq 
NEq 
Set 

Instances

data UOperator Source

Constructors

Neg 
Not 
Get 

Instances

(<) :: AST -> AST -> ASTSource

(!) :: AST -> AST -> ASTSource

(>) :: AST -> AST -> ASTSource

for :: AST -> AST -> AST -> ASTSource

map :: AST -> AST -> AST -> ASTSource

fold :: AST -> AST -> AST -> AST -> ASTSource