forked from GitHub/gf-core
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