If one uses %union, the C parser is supposed to be dynamic, and when not using it, I think Joel E. Denny said he is setting some Bison macro to achieve it (I do not remember details). If you set YYMAXDEPTH, I think you get a initial static array, so if it is too big, the parser will break.

On 3 Feb 2006, at 19:08, Anouar LACHHEB wrote:

Hi,

I have developped a parser/interpreter with Bison v 2.1 and Flex v 2.5.4 , the parser runs correctly and I have no pbs; however, I have some troubles with my interpreter: the pb is that my interpreter could not read all the "command" that I have typed through my command line (on Unix) and I get a parsing error.

I thought that my parser is incorrect, but using the parser on a "command file" I get correct result. So I deduced that the interpreter could not read all the command line.

I tried to define YYMAXDEPTH as big as possible, But in vain: #define YYMAXDEPTH 1000000000

I think that the pb is a Unix system buffer limitation.

Any help?

Best regards,

AnL.



_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison



_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to