diff options
| author | bringert <bringert@cs.chalmers.se> | 2007-03-23 18:09:22 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2007-03-23 18:09:22 +0000 |
| commit | 94813f9ffb3688297fba1138002e84739c2d90df (patch) | |
| tree | 25d467ee70367d25693b1c12462c9d47c8add51a | |
| parent | 7ae2e0167889e6fde45fcd175d3dfab0029f973a (diff) | |
Added test case which demonstrates a bug with implicit left recusion in SRG generation.
| -rw-r--r-- | test/srg/srg0002/empty.gf | 13 |
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" } ; |
