Guido van Rossum
Sep 10, 2019 · 1 min read
  • It’s easy to create a tool to remove the actions from the grammar if that’s more useful for some tool.
  • If you want to write a code formatter you should use the parser in lib2to3 — the current ast module does not preserve comments and that won’t change (and neither does the ancient parser module).
  • If you want a PEG parser generator without actions, Tatsu should do that — it has several features along these lines.
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade