summaryrefslogtreecommitdiff
path: root/old-examples/math/MathSwz.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-06-25 16:54:35 +0000
committeraarne <aarne@cs.chalmers.se>2008-06-25 16:54:35 +0000
commite9e80fc389365e24d4300d7d5390c7d833a96c50 (patch)
treef0b58473adaa670bd8fc52ada419d8cad470ee03 /old-examples/math/MathSwz.gf
parentb96b36f43de3e2f8b58d5f539daa6f6d47f25870 (diff)
changed names of resource-1.3; added a note on homepage on release
Diffstat (limited to 'old-examples/math/MathSwz.gf')
-rw-r--r--old-examples/math/MathSwz.gf44
1 files changed, 44 insertions, 0 deletions
diff --git a/old-examples/math/MathSwz.gf b/old-examples/math/MathSwz.gf
new file mode 100644
index 000000000..0d12a29e0
--- /dev/null
+++ b/old-examples/math/MathSwz.gf
@@ -0,0 +1,44 @@
+--# -path=.:prelude
+
+concrete MathSwz of Mathw = open Prelude in {
+
+flags lexer = textlit ; unlexer = textlit ;
+
+-- lincat Section ; Context ; Typ ; Obj ; Prop ; Proof ; Var ;
+
+lin
+ SDefObj cont obj typ df =
+ ss ("Definition" ++ "." ++ cont.s ++
+ obj.s ++ "är" ++ "ett" ++ typ.s ++ "," ++ "definierat" ++ "som" ++ df.s ++ ".") ;
+ SDefProp cont prop df =
+ ss ("Definition" ++ "." ++ cont.s ++ "vi" ++ "säger" ++
+ "att" ++ prop.s ++ "om" ++ df.s ++ ".") ;
+ SAxiom cont prop =
+ ss ("Axiom" ++ "." ++ cont.s ++ prop.s ++ ".") ;
+ STheorem cont prop proof =
+ ss ("Theorem" ++ "." ++ cont.s ++ prop.s ++ "." ++ proof.s ++ ".") ;
+
+ CEmpty = ss [] ;
+ CObj vr typ co = ss ("låt" ++ vr.s ++ "vara" ++ "ett" ++ typ.s ++ "." ++ co.s) ;
+ CProp prop co = ss ("anta" ++ "att" ++ prop.s ++ "." ++ co.s) ;
+
+ OVar v = v ;
+
+ V_x = ss "x" ;
+ V_y = ss "y" ;
+ V_z = ss "z" ;
+
+-- lexicon
+
+ Set = ss "mängd" ;
+ Nat = ss ["naturligt tal"] ;
+ Zero = ss "noll" ;
+ Succ = prefixSS ["efterföljaren till"] ;
+ One = ss "ett" ;
+ Two = ss "två" ;
+ Even = postfixSS ["är jämnt"] ;
+ Odd = postfixSS ["är udda"] ;
+ Prime = postfixSS ["är ett primtal"] ;
+ Divisible = infixSS ["är delbart med"] ;
+
+}