Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bc: yyparse() loop regression (#619)
* A previous commit replaced a goto into yyparse() with a call to yyparse() but this introduced an infinite loop for a file with a syntax error * yy_err_recover() returns bool; returning 1 instead of calling yyparse() again allows yyparse() to itself return and break out of "yyloop" * The pattern of return(1) from yy_err_recover() was already established; this patch just makes it more consistent * test1: echo '1++' > A.bc && perl bc -y A.bc * test2: echo '~' > B.bc && perl bc -y B.bc
- Loading branch information