projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* tests/glr-regression.at (Improper merging of GLR delayed action
[bison.git]
/
tests
/
glr-regression.at
diff --git
a/tests/glr-regression.at
b/tests/glr-regression.at
index fd822a180cede7d00eda06974321a366377539f5..df27f0a948a737475fb367f06c339b7cdcc0cedb 100644
(file)
--- a/
tests/glr-regression.at
+++ b/
tests/glr-regression.at
@@
-239,6
+239,7
@@
AT_DATA_GRAMMAR([glr-regr3.y],
static int MergeRule (int x0, int x1);
static void yyerror(char const * s);
static int MergeRule (int x0, int x1);
static void yyerror(char const * s);
+int yylex (void);
#define RULE(x) (1 << (x))
#define RULE(x) (1 << (x))
@@
-298,7
+299,7
@@
int yylex (void)
char inp[3];
if (fscanf (yyin, "%2s", inp) == EOF)
return 0;
char inp[3];
if (fscanf (yyin, "%2s", inp) == EOF)
return 0;
- switch (inp[0])
+ switch (inp[0])
{
case 'p': return P[inp[1] - '1'];
case 't': return T[inp[1] - '1'];
{
case 'p': return P[inp[1] - '1'];
case 't': return T[inp[1] - '1'];