mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 14:29:31 -06:00
fixed some tutorial grammars and updated embedded section (JavaScript and web TODO)
This commit is contained in:
15
examples/tutorial/embedded/QueryEng.gf
Normal file
15
examples/tutorial/embedded/QueryEng.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
concrete QueryEng of Query = {
|
||||
lincat
|
||||
Answer, Question, Object = Str ;
|
||||
|
||||
lin
|
||||
Even x = "is" ++ x ++ "even" ;
|
||||
Odd x = "is" ++ x ++ "odd" ;
|
||||
Prime x = "is" ++ x ++ "prime" ;
|
||||
Number n = n.s ;
|
||||
|
||||
Yes = "yes" ;
|
||||
No = "no" ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user