Hacker News new | ask | show | jobs
by jonstewart 858 days ago
Regex with callbacks? Congrats, you’ve reinvented lex.
1 comments

Wow, you are right. The first sentence of the abstract of Lesk & Schmidt's paper:

"Lex helps write programs whose control flow is directed by instances of regular expressions in the input stream."

Exactly what I was talking about. There's no reason to suck at state management, guys....