
1 Sep
2007
1 Sep
'07
9:20 p.m.
David Abrahams wrote:
on Sat Sep 01 2007, Chris Lattner <clattner-AT-apple.com> wrote:
Can you give me a specific example of where making the entire lexer a template would be more useful than adding a couple of virtual method calls? It isn't meaningful to lex anything other than a sequence of char's
You're serious? It's meaningless to lex UTF-32?
Do you expect a modern compiler to include those specialization: - lexer<ascii> - lexer<utf8> - lexer<utf32> - lexer<koi8-r> - .... - lexer<klingon standard encoding> all together? How much that will be, like 1G of code space just for lexer? - Volodya