bison/flex: Best practice to report an libc error to caller of yyparse

2009-06-13 Thread Nicolai Stange
e best way of doing things? Another question that might not belong to here but maybe somebody knows it ad-hoc: Is there an automake way of telling flex to also generate a header file? Thank you very much! Regards Nicolai Stange ___ help-bison@gn

Re: bison/flex: Best practice to report an libc error to caller of yyparse

2009-06-13 Thread Nicolai Stange
Hi, first of all: Thank you for your reply Hans. > > i wonder how to report an libc error > > (maybe ENOMEM, EIO) that has occured in either yylex or yyparse to the > > caller of yyparse. > > As for the first error, memory allocation error, your program is > likely unrecoverable, so just write