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

Terence Parr

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.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact