[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 11:25:04 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
>>> "Hans" == Hans Aberg <address@hidden> writes:
> Also, just use the std::deque for stack. I think that std::stack will
> not be able to look deeper than top, as is required by the parser.
Of course it can't. That's why we used a dequeue from the start.
> And std::deque is in the latest C++ revision written so that it does
> not invoke copy constructors when expanding the stack, as it just
> allocates a new chunk, leaving the old one intact.
Exactly.
Still, time permitting, using vector would be better.
- 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
- 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, 2005/09/19
- Re: FYI: lalr1.cc: Remove the traits, Hans Aberg, 2005/09/19
- FYI: lalr1.cc: Single parser stack, Hans Aberg, 2005/09/19