My lexer (generated in C++) seems slower than table-driven lexers like lex. Is there anything I can do?
Location: http://www.jguru.com/faq/view.jsp?EID=458474 Created: Jul 19, 2001 Modified: 2001-07-19 18:25:39.028 Author: Terence Parr (http://www.jguru.com/guru/viewbio.jsp?EID=1) Question originally posed by Ilya Rosenberg (http://www.jguru.com/guru/viewbio.jsp?EID=68153 According to Ric Klaren, an istringstream object should do the trick. He also has an example, flexLex in the examples/cpp directory of the distribution, that shows using flex instead of ANTLR’s top-down lexer.