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 AM, cardinals <cardin...@163.com> wrote: > 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: > ([2-8]xxxxxx|13xxxxxxxxx|1800383848|0xxxxxxxx|9xxxx|*|# > |x.#|1[0124-9]x|[0-9*#].T................................... > .................. > > > I did not get any error from yyerror, e.g. syntax nor memory exhausted. > > > but from high level SW which used Bison, I could see count of memory free > is more than memory allocation so "mem error " reported. > > > Thank you if you could provide some clues. > > > Br Lewis > _______________________________________________ > help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison > _______________________________________________ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison