repositories
/
fp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[fp.git]
/
ast.dcl
1
definition module ast
2
3
:: AST = AST [Function]
4
5
:: Function = Function String [String] Expression
6
7
:: Expression
8
= Literal Value
9
| Variable String
10
| Apply Expression Expression
11
| ..
12
13
:: Value
14
= Int Int
15
| Bool Bool
16
| Char Char
17
18
instance toString AST
19
instance toString Function
20
instance toString Expression
21
instance toString Value