bison-patches
[Top][All Lists]
Advanced

[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 12:24:39 +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.

 > Why is this of course?

For the reason you gave.

 >> That's why we used a dequeue from the start.

 > std::stack uses std::deque for implementation.

I doubt the C++ standard mandates this.

 > I guess you will have to do some time profiling to figure this
 > out. A typical compilers spends little time in the parsing anyway,
 > so it probably does not matter,

That's a view that a compiler implementer might have, not the one
Bison maintainers can.






reply via email to

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