mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 10:22:50 -06:00
added example for NLG from logical formula. See examples/nlg
This commit is contained in:
20
examples/nlg/Logic.gf
Normal file
20
examples/nlg/Logic.gf
Normal file
@@ -0,0 +1,20 @@
|
||||
abstract Logic = {
|
||||
|
||||
cat
|
||||
Ind; Prop;
|
||||
|
||||
fun
|
||||
john : Ind;
|
||||
mary : Ind;
|
||||
boy : Ind -> Prop;
|
||||
love : Ind -> Ind -> Prop;
|
||||
leave : Ind -> Prop;
|
||||
smart : Ind -> Prop;
|
||||
exists : (Ind -> Prop) -> Prop;
|
||||
forall : (Ind -> Prop) -> Prop;
|
||||
and,or : Prop -> Prop -> Prop;
|
||||
impl : Prop -> Prop -> Prop;
|
||||
not : Prop -> Prop;
|
||||
eq : Ind -> Ind -> Prop;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user