summaryrefslogtreecommitdiff
path: root/old-lib/resource/mathematical/Symbol.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
committeraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
commite89fdae2fa1626348d8025824a7469252fa85e42 (patch)
treec7d46bbd0494043b4bd6f917a25a7687517d0547 /old-lib/resource/mathematical/Symbol.gf
parent3049b59b35b25381a7c6787444165c200d66e08b (diff)
next-lib renamed to lib, lib to old-lib
Diffstat (limited to 'old-lib/resource/mathematical/Symbol.gf')
-rw-r--r--old-lib/resource/mathematical/Symbol.gf46
1 files changed, 46 insertions, 0 deletions
diff --git a/old-lib/resource/mathematical/Symbol.gf b/old-lib/resource/mathematical/Symbol.gf
new file mode 100644
index 000000000..a8ac9ca1b
--- /dev/null
+++ b/old-lib/resource/mathematical/Symbol.gf
@@ -0,0 +1,46 @@
+--1 Symbolic expressions
+
+-- *Note*. This module is not automatically included in the main
+-- grammar [Lang Lang.html].
+
+abstract Symbol = Cat, PredefAbs ** {
+
+--2 Noun phrases with symbols and numbers
+
+fun
+
+ SymbPN : Symb -> PN ; -- x
+ IntPN : Int -> PN ; -- 27
+ FloatPN : Float -> PN ; -- 3.14159
+ NumPN : Card -> PN ;
+ CNNumNP : CN -> Card -> NP ; -- level five ; level 5
+ CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
+
+
+--2 Sentence consisting of a formula
+
+ SymbS : Symb -> S ; -- A
+
+--2 Symbols as numerals
+
+ SymbNum : Symb -> Card ; -- n
+ SymbOrd : Symb -> Ord ; -- n'th
+
+--2 Symbol lists
+
+-- A symbol list has at least two elements. The last two are separated
+-- by a conjunction ("and" in English), the others by commas.
+-- This produces "x, y and z", in English.
+
+cat
+ Symb ;
+ [Symb]{2} ;
+
+fun
+ MkSymb : String -> Symb ;
+
+--2 Obsolescent
+
+ CNIntNP : CN -> Int -> NP ; -- level 53 (covered by CNNumNP)
+
+}