Re: memory problem

2016-09-22 Thread Hans Ã…berg
> On 22 Sep 2016, at 17:20, cardinals wrote: > How long max input string could Bison support? 4K? 2K? or 1K? Bison parses tokens handed down from the lexer, not strings. So you need to provide more details. ___

memory problem

2016-09-22 Thread cardinals
Hello, How long max input string could Bison support? 4K? 2K? or 1K? I met one issue when use bison to parse a long digitMap (length is 4096 characters), which is used for voip digitMap, looks like:

Re: memory problem

2016-09-22 Thread Chris verBurg
I'm not sure there's a Bison limit -- tokens should be allocated by the lexer (flex), and user code has full control over how big to make buffers and char*s.. Or by "Bison input" do you mean the .y file, and it's a grammar rule that exceeds 4096 characters? -Chris On Thu, Sep 22, 2016 at 8:20