summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-03-25 16:11:51 +0000
committerbringert <bringert@cs.chalmers.se>2007-03-25 16:11:51 +0000
commit85072fb6b2ae8cb7e44b35286daabfd71e4811d3 (patch)
tree7ef021bf40a06c45bedef7197fedf4d8d8b26ad2 /test
parent43311670119318d031c660a788716eda9b7bd618 (diff)
Added srg0006: A grammar with a cycle caused by an empty production.
Diffstat (limited to 'test')
-rw-r--r--test/srg/srg0006/srg0006.gf10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/srg/srg0006/srg0006.gf b/test/srg/srg0006/srg0006.gf
new file mode 100644
index 000000000..9fa34ed64
--- /dev/null
+++ b/test/srg/srg0006/srg0006.gf
@@ -0,0 +1,10 @@
+-- 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 = [] } ; \ No newline at end of file