1
0
forked from GitHub/gf-core

two versions of semantics (the Logic version incomplete)

This commit is contained in:
aarne
2007-10-19 22:12:30 +00:00
parent 295c40fe3a
commit e86db4d8c8
9 changed files with 416 additions and 14 deletions

View File

@@ -0,0 +1,37 @@
-- abstract syntax of a query language
abstract Base = {
cat
S ;
NP ;
CN ;
AP ;
A2 ;
Conj ;
fun
PredAP : NP -> AP -> S ;
ComplA2 : A2 -> NP -> AP ;
ModCN : AP -> CN -> CN ;
ConjS : Conj -> S -> S -> S ;
ConjAP : Conj -> AP -> AP -> AP ;
ConjNP : Conj -> NP -> NP -> NP ;
Every : CN -> NP ;
Some : CN -> NP ;
And, Or : Conj ;
-- lexicon
UseInt : Int -> NP ;
Number : CN ;
Even, Odd, Prime : AP ;
Equal, Greater, Smaller, Divisible : A2 ;
}