mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
started a subdir for the book
This commit is contained in:
13
book/examples/chapter7/QueryFin.gf
Normal file
13
book/examples/chapter7/QueryFin.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
concrete QueryFin of Query = {
|
||||
lincat
|
||||
Answer, Question, Object = Str ;
|
||||
lin
|
||||
Even = pred "parillinen" ;
|
||||
Odd = pred "pariton" ;
|
||||
Prime = pred "alkuluku" ;
|
||||
Number i = i.s ;
|
||||
Yes = "kyllä" ;
|
||||
No = "ei" ;
|
||||
oper
|
||||
pred : Str -> Str -> Str = \f,x -> "onko" ++ x ++ f ;
|
||||
}
|
||||
Reference in New Issue
Block a user