help-bison
[Top][All Lists]
Advanced

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

Re: memory problem


From: Chris verBurg
Subject: Re: memory problem
Date: Thu, 22 Sep 2016 13:08:57 -0700

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 <address@hidden> 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
> _______________________________________________
> address@hidden https://lists.gnu.org/mailman/listinfo/help-bison
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]