Re:My Most Important Project Was a Bytecode Interpreter
by rocket69 on Thursday September 22, 2016 @03:38PM
(#12559661)
Yea, we're not talking about compilers, we're talking about lexers. Regex doesn't even make a little bit of sense in a compiler world. What lexer are you working with?
[ Parent
| on HN ]
Re:My Most Important Project Was a Bytecode Interpreter
by vidarh on Friday September 23, 2016 @07:35AM
(#12563788)
One of the main uses of lexers are in compiler.
There are others, certainly, like parsing various configuration formats etc. but they tend to either use tool generated lexers that tend to use dfa's, or handwritten lexers that may or may not use regexes, but there too it's fairly uncommon to see much regex use.
I custom write all of my lexers for exactly the reasons I outlined above.