Skip to content

PLY (Python Lex-Yacc) – To Write a Parser in Python

github.com/dabeaz
4 pointsjonjlee2 comments
On HN

Comments

The bad thing about PLY is that it's required at runtime, in contrast to Flex+Yacc/Bison (C) or Wisent (Python).

Thanks. That's very good to know. Wisent looks great, and here's a link: https://github.com/seehuhn/wisent. My goal right now is to add the ability to quickly write a simple DSL into my skill set. I intend to start with PLY since it seems to have a minimally lower barrier to entry. The rules live in the .py file without need for additional compilation.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.