mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 02:38:55 -06:00
10 lines
187 B
Plaintext
10 lines
187 B
Plaintext
-- A grammar with a cycle caused by an empty category.
|
|
cat S; E;
|
|
|
|
fun f : E -> S -> S;
|
|
fun g : S ;
|
|
fun e : E ;
|
|
|
|
lin f e s = { s = e.s ++ s.s } ;
|
|
lin g = { s = "s" } ;
|
|
lin e = { s = [] } ; |