Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

My lexer (generated in C++) seems slower than table-driven lexers like lex. Is there anything I can do?

0
Posted

My lexer (generated in C++) seems slower than table-driven lexers like lex. Is there anything I can do?

0

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.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123