summaryrefslogtreecommitdiff
path: root/examples/mathtext/LexLogic.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2009-12-18 11:08:39 +0000
committeraarne <aarne@chalmers.se>2009-12-18 11:08:39 +0000
commitc0de7a0627c9c20267a3312055ea7da683632d20 (patch)
treeda4ce4cf7f1f1fd8c83254a82a20778bdeef360a /examples/mathtext/LexLogic.gf
parenta4eb1800a4913121297eb83970718cd3895aa43f (diff)
mathtext examples from Bonn
Diffstat (limited to 'examples/mathtext/LexLogic.gf')
-rw-r--r--examples/mathtext/LexLogic.gf20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/mathtext/LexLogic.gf b/examples/mathtext/LexLogic.gf
new file mode 100644
index 000000000..c80ff27bc
--- /dev/null
+++ b/examples/mathtext/LexLogic.gf
@@ -0,0 +1,20 @@
+interface LexLogic = open Syntax, Prelude in {
+
+oper
+ case_N : N ; -- it is not the case that
+ such_A : A ; -- number such that
+ by_Prep : Prep ; -- by Thm 5
+ all_Det : Det ; -- the article with "all"
+ axiom_N : N ;
+ theorem_N : N ;
+ definition_N : N ;
+ define_V3 : V3 ; -- we define a as b
+ define_V2V : V2V ; -- we define x to be f if p
+ iff_Subj : Subj ; -- if and only if
+oper
+ indef : Bool -> CN -> NP = \b -> case b of {
+ True => mkNP aPl_Det ;
+ False => mkNP aSg_Det
+ } ;
+
+}