help-bison
[Top][All Lists]
Advanced

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

Re: String concatenation?


From: Kevin Milner
Subject: Re: String concatenation?
Date: Wed, 4 Jun 2003 10:15:33 +0200

great! Thanks for your help, this looks to have solved my problem...

----- Original Message -----
From: "Hans Aberg" <address@hidden>
To: "Kevin Milner" <address@hidden>
Cc: "Bison Help" <address@hidden>
Sent: Tuesday, June 03, 2003 11:34 AM
Subject: Re: String concatenation?


> At 10:46 -0500 2003/06/03, Kevin Milner wrote:
> [Please keep Cc to Help Bison list.]
> >So in the scanner I should just do something like this, right?
> >
> >{  yylval.strval = strdup(yytext); .... }
>
> Right.
>
> >So what happens to this string at a later time? Do I need to free it in
the
> >parser?
>
> I use C++, which does that automatically via a C++ sequence container
(like
> std::deque) used as parser stack.
>
> Under C, you need to clean up the memory by hand, or using %destructor or
> something.
>
>   Hans Aberg
>
>
>






reply via email to

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