summaryrefslogtreecommitdiff
path: root/gf-book/examples/chapter8/Calculator.gf
blob: 188c150e08631b6051957efa6b64415d163cfab8 (plain)
1
2
3
4
5
6
7
abstract Calculator = {
flags startcat = Exp ;
cat Exp ;
fun
  EPlus, EMinus, ETimes, EDiv : Exp -> Exp -> Exp ;
  EInt : Int -> Exp ;
}