News for hackers. Stuff that matters.
Re:Why I’m quitting the C++ Grandmaster Certification course by verroq on Sunday June 23, 2013 @07:22PM (#5929992)
Really? Why don't you write your own regex? Regular languages are definitely relevant. It's not that hard to write a basic regex engine (make NFA and convert to DFA). This is a compilers course after all.
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.
Re:Why I’m quitting the C++ Grandmaster Certification course by eliasmacpherson on Sunday June 23, 2013 @07:50PM (#5930095)
http://swtch.com/~rsc/regexp/regexp1.html This was posted a few days ago but I can't find the link, anyway it would be useful to read if implementing regex.

Baffled that course takers agree not release their source code?

Re:Why I’m quitting the C++ Grandmaster Certification course by anigbrowl on Sunday June 23, 2013 @08:04PM (#5930143)
To prevent cheating, I assume.