mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
modernized parser in EmbedAPI
This commit is contained in:
14
examples/tutorial/embedded/Math.gf
Normal file
14
examples/tutorial/embedded/Math.gf
Normal file
@@ -0,0 +1,14 @@
|
||||
abstract Math = {
|
||||
|
||||
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