forked from GitHub/gf-core
Really adding QuerySpa to embedded.
This commit is contained in:
15
examples/tutorial/embedded/QuerySpa.gf
Normal file
15
examples/tutorial/embedded/QuerySpa.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
concrete QuerySpa of Query = {
|
||||
lincat
|
||||
Answer, Question, Object = Str ;
|
||||
|
||||
lin
|
||||
Even x = x ++ "es" ++ "par" ;
|
||||
Odd x = x ++ "es" ++ "impar" ;
|
||||
Prime x = x ++ "es" ++ "primo" ;
|
||||
Number n = n.s ;
|
||||
|
||||
Yes = "si" ;
|
||||
No = "no" ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user