Rename tests/glr-regr1.at to tests/glr-regression.at.

tests/glr-regression.at: Add new regression test for the problems
 reported by S. Eken with semantic values for embedded rules.
Update copyright notice.
tests/testsuite.at, tests/Makefile.am: Rename glr-regr1.at to
 glr-regression.at.
This commit is contained in:
Paul Hilfinger
2003-01-29 23:39:11 +00:00
parent f868dc04e4
commit ede3d3bcbc
5 changed files with 225 additions and 111 deletions

View File

@@ -72,7 +72,7 @@ stmt : expr ';' $2
| '@' { YYACCEPT; }
;
expr : ID { printf ("%s ", $$); }
expr : ID { printf ("%s ", ]$[1); }
| TYPENAME '(' expr ')'
{ printf ("%s <cast> ", ]$[1); }
| expr '+' expr { printf ("+ "); }