Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I certainly like text manipulation (well string manipulation at least) in python much more than other languages I use (C, C++, Matlab). It might just be the case that python is the best tool in the authors tool belt for this sort of work.

I'm curious what language you would consider optimal for writing a parser in?



> I'm curious what language you would consider optimal for writing a parser in?

I've been researching that question, and was hoping someone would reply and point me in a useful direction.


I've written a couple parsers in D using https://github.com/PhilippeSigaud/Pegged and they seem pretty fast and easy to verify. Of course since it generates a lot of code at compile time, you can end up with somewhat slow builds.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: