[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: lalr1.cc: Remove the traits
From: |
Akim Demaille |
Subject: |
Re: FYI: lalr1.cc: Remove the traits |
Date: |
Mon, 19 Sep 2005 17:03:21 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
>>> "Hans" == Hans Aberg <address@hidden> writes:
> On 19 Sep 2005, at 16:07, Akim Demaille wrote:
>>> One way to do it, might be to define a macro that expands to
>>> std::deque by default. Then, if one wants to change that, one writes
>>> in the .y file say
>>> %define parser_stack "std::vector"
>>> causing the macro to expand to std::vector instead.
>>>
>>
>> Their interfaces are way too different.
> I have no problem, with my skeleton file, to change between
> std::vector and std::deque. From what I recall, you push/pop the
> deque in front, which does not work with vector; I changed that. I
> attach the skeleton file I use.
I wasn't aware push_back was supported by vectors, thanks!
- FYI: lalr1.cc: Remove the traits, Akim Demaille, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Hans Aberg, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Akim Demaille, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Hans Aberg, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Akim Demaille, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Hans Aberg, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Hans Aberg, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Akim Demaille, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Hans Aberg, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits,
Akim Demaille <=
- Re: FYI: lalr1.cc: Remove the traits, Hans Aberg, 2005/09/19
- FYI: lalr1.cc: Single parser stack, Hans Aberg, 2005/09/19