Tom Lane <[EMAIL PROTECTED]> writes: > You probably know about this already,
No, sorry, I don't. Thanks for reporting it. What happens when you try this? $ cd tests $ ./testsuite -v -d 129 $ cd testsuite.dir/129 $ gcc -g -DYYDEBUG -o foo expect2.c $ gdb ./foo (gdb) b main (gdb) r (gdb) p yydebug=1 (gdb) c On my machine, the last command generates the following output, which is correct. Evidently your machine does something different and we need to find out why. Continuing. Starting parse Entering state 0 Reducing stack 0 by rule 1 (line 23): -> $$ = nterm program () Entering state 1 Reading a token: Next token is token A () Shifting token A () Entering state 4 Reducing stack 0 by rule 6 (line 28): $1 = token A () -> $$ = nterm t () Entering state 7 Reducing stack 0 by rule 5 (line 27): $1 = nterm t () -> $$ = nterm e () Entering state 6 Reading a token: Next token is token '+' () Shifting token '+' () Entering state 10 Reading a token: Next token is token '+' () syntax error, unexpected '+', expecting A or B Error: popping token '+' () Error: popping nterm e () Shifting token error () Entering state 3 Error: discarding token '+' () Reading a token: Next token is token $end () Error: discarding token $end () Reading a token: Next token is token $end () Cleanup: popping token error () Cleanup: popping nterm program () Cleanup: popping token $end () Program exited with code 01.
