summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-03-23 18:09:22 +0000
committerbringert <bringert@cs.chalmers.se>2007-03-23 18:09:22 +0000
commit94813f9ffb3688297fba1138002e84739c2d90df (patch)
tree25d467ee70367d25693b1c12462c9d47c8add51a
parent7ae2e0167889e6fde45fcd175d3dfab0029f973a (diff)
Added test case which demonstrates a bug with implicit left recusion in SRG generation.
-rw-r--r--test/srg/srg0002/empty.gf13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/srg/srg0002/empty.gf b/test/srg/srg0002/empty.gf
new file mode 100644
index 000000000..397ec37e5
--- /dev/null
+++ b/test/srg/srg0002/empty.gf
@@ -0,0 +1,13 @@
+cat S; X; E;
+
+fun s : S ;
+--fun es : E -> S -> S ;
+fun sx : S -> X -> S ;
+fun x : X ;
+fun e : E ;
+
+lin s = { s = "s" } ;
+--lin es e s = { s = e.s ++ s.s } ;
+lin sx s x = { s = s.s ++ x.s } ;
+lin x = { s = "x" } ;
+lin e = { s = "e" } ;