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