mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 13:09:33 -06:00
Added srg0003: test case for indirect cycles.
This commit is contained in:
11
test/srg/srg0003/cyclic.gf
Normal file
11
test/srg/srg0003/cyclic.gf
Normal file
@@ -0,0 +1,11 @@
|
||||
-- a grammar with an indirect cycle
|
||||
|
||||
cat S; G;
|
||||
|
||||
fun f : S ;
|
||||
fun fg : G -> S ;
|
||||
fun gf : S -> G ;
|
||||
|
||||
lin f = { s = "f" } ;
|
||||
lin fg x = x;
|
||||
lin gf x = x;
|
||||
Reference in New Issue
Block a user