mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 22:39:31 -06:00
fixed some tutorial grammars and updated embedded section (JavaScript and web TODO)
This commit is contained in:
17
examples/tutorial/embedded/Query.gf
Normal file
17
examples/tutorial/embedded/Query.gf
Normal file
@@ -0,0 +1,17 @@
|
||||
abstract Query = {
|
||||
|
||||
flags startcat=Question ;
|
||||
|
||||
cat
|
||||
Answer ; Question ; Object ;
|
||||
|
||||
fun
|
||||
Even : Object -> Question ;
|
||||
Odd : Object -> Question ;
|
||||
Prime : Object -> Question ;
|
||||
Number : Int -> Object ;
|
||||
|
||||
Yes : Answer ;
|
||||
No : Answer ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user