[Top][All Lists]

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

Re: Error with grammar arguments

From: Hans Åberg
Subject: Re: Error with grammar arguments
Date: Tue, 18 Dec 2018 22:21:20 +0100

> On 18 Dec 2018, at 20:06, Rob Casey <address@hidden> wrote:
> Yes - That is correct Chris. I am allocating memory within Flex for tokens.
> This issue first manifest itself when I started to add code for the proper
> freeing on this memory (where no longer required) within grammar actions.

It looks like a lexer issue, same pointer passed to the Bison parser. You might 
write out the strings to see whether it is overwritten or not written the 
second time.

> On Wed, 19 Dec. 2018, 04:40 Chris verBurg <address@hidden wrote:
>> Rob,
>> To ask a sanity question, you do strdup (or otherwise allocate fresh
>> memory for) yytext on the Flex side when returning tokens, yes?
>> -Chris

reply via email to

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