2 ms·
Python has many qualities, but I wouldn't use it to write a compiler. That being said, I've seen much worse languages being used to write compilers, so... who
by Yoric 4y ago
Python has many qualities, but I wouldn't use it to write a compiler.
That being said, I've seen much worse languages being used to write compilers, so... who knows?
- baq 4y agoPython has really nice lexer and parser libraries. It isn’t Haskell or ML but it works. It is slow as expected.
- Yoric 4y agoLexing and parsing aren't the scary part. I'm much more nervous about maintaining invariants as you implement compilation passes, especially in the absence of powerful pattern-matching.