mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-27 05:22:50 -06:00
gf-book web page index and toc
This commit is contained in:
13
gf-book/examples/chapter7/QueryEng.gf
Normal file
13
gf-book/examples/chapter7/QueryEng.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
concrete QueryEng of Query = {
|
||||
lincat
|
||||
Answer, Question, Object = Str ;
|
||||
lin
|
||||
Even = pred "even" ;
|
||||
Odd = pred "odd" ;
|
||||
Prime = pred "prime" ;
|
||||
Number i = i.s ;
|
||||
Yes = "yes" ;
|
||||
No = "no" ;
|
||||
oper
|
||||
pred : Str -> Str -> Str = \f,x -> "is" ++ x ++ f ;
|
||||
}
|
||||
Reference in New Issue
Block a user