in reply to Re^2: HOP::Lexer not doing what I expected
in thread HOP::Lexer not doing what I expected
Where it really does go wrong, in my opinion, is that it doesn't make any attempt to try and find a leftmost match. That's what all lexers are supposed to do. So you can rightfully argue that it must find "select" in the string "selectx", it makes no sense to skip the first "x" in "xselectx". No other lexer or parser in the world would do that, not by design.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: HOP::Lexer not doing what I expected
by cmarcelo (Scribe) on Nov 11, 2006 at 22:39 UTC |