forked from GitHub/gf-core
examples/test is moved to testsuite
This commit is contained in:
11
testsuite/srg/cyclic-indirect/cyclic-indirect.gf
Normal file
11
testsuite/srg/cyclic-indirect/cyclic-indirect.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