From 5c713d8f027a9b6be687ee3f7e917e8bd2115773 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 27 Jun 2008 09:18:50 +0000 Subject: took away old-examples --- old-examples/tutorial/calculator/CalculatorE.gf | 27 ------------------------- 1 file changed, 27 deletions(-) delete mode 100644 old-examples/tutorial/calculator/CalculatorE.gf (limited to 'old-examples/tutorial/calculator/CalculatorE.gf') diff --git a/old-examples/tutorial/calculator/CalculatorE.gf b/old-examples/tutorial/calculator/CalculatorE.gf deleted file mode 100644 index f432d371a..000000000 --- a/old-examples/tutorial/calculator/CalculatorE.gf +++ /dev/null @@ -1,27 +0,0 @@ ---# -path=.:prelude - -concrete CalculatorE of Calculator = open Prelude in { - - flags lexer=codevar ; unlexer=unwords ; - - lincat - Prog, Exp, Var = SS ; - - lin - PEmpty = ss [] ; - PInit exp prog = ss ("initialize" ++ prog.$0 ++ "as" ++ exp.s ++ PAUSE ++ prog.s) ; - PAss vr exp prog = ss ("redefine" ++ vr.s ++ "as" ++ exp.s ++ PAUSE ++ prog.s) ; - - EPlus = infix "plus" ; - EMinus = infix "minus" ; - ETimes = infix "times" ; - EDiv = infix ["divided by"] ; - - EInt i = i ; - EVar x = x ; - - oper - infix : Str -> SS -> SS -> SS = \op,x,y -> - ss (x.s ++ op ++ y.s ++ PAUSE) ; - PAUSE = "PAUSE" ; -} -- cgit v1.2.3