News for hackers. Stuff that matters.
Re:Why I’m quitting the C++ Grandmaster Certification course by marshray on Sunday June 23, 2013 @07:25PM (#5930006)
I've written lexers without a regex engine before, it's only a few hundred lines of a state machine.

I can't think of any other places in a compiler where a regex library would be terribly useful.

Re:Why I’m quitting the C++ Grandmaster Certification course by evincarofautumn on Sunday June 23, 2013 @08:27PM (#5930208)
Agreed. Having done a lot of language work, I don’t find regexes suitable at all. State machines are generally simple both to write and to understand, can be made more efficient when you don’t need the full generality or dynamism of a regex, and force you to be explicit about things like which Unicode code points you actually meant.
Re:Why I’m quitting the C++ Grandmaster Certification course by verroq on Sunday June 23, 2013 @07:31PM (#5930029)
Specifying tokens in the grammar would be the obvious usage.