[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [GNU-COBOL] grammar




> I did a quick comparison between bison, byacc and btyacc, 
> using the same
> input grammar.
> 
> Byacc fared the best(not always, usually), with bison in second. The
> problem with btyacc seems to be that while byacc and bison will output
> errors then stop, btyacc will seg fault and core dump. 
> 
> As to specifically why it as a tendency to that, I do not 
> know. At the time
> I had no wish to track down the problem.
> 

It's got to be a stack problem.  From what I read about btyacc, it starts
"hunting" other possible solutions, probably through recursion.  There isn't
a test to make sure it isn't going too deep.  I have NOT looked at the code,
but it should probably have a counter/check and not go more than <n> levels
deep.  It continues, and chews up the stack, thus causing the seg fault.

BTW, we had some problems here with power, and I seem to have lost the email
someone sent that gave the location of the source, etc.  Could someone
resend this please?

Thanx. 

--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to majordomo@acm.cs.umr.edu with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@acm.cs.umr.edu.