From: MenTaLguY Date: 2005-11-04T03:53:37+09:00 Subject: Re: YACC (Was: Re: ruby-dev summary 27393-27541) On Fri, 2005-11-04 at 00:07 +0900, Eric Mahurin wrote: > Secondly, I think it might be possible to reduce the lexer state to > one bit - whether the next operator is unary or binary. For example - %: > string vs. modulus, <<: heredoc vs. leftshift, `: execution quote vs. method > name. I may look at some of this simplification later. If you can reduce it that far, you don't need lexer state, just sufficient lookahead. -mental