Parse shell one-liners with pyparsing | nvbn blog
nvbn.github.io/2016/07/05/shell-ast
What Jamie wrote
The specific example in this blog post of using Pyparsing to write an abstract syntax tree isn't the reason I’m highlighting it. I've read about PyParsing before and even attempted to write a parser for the Planet Kubb notation system. This is a library developers should know about. Too often people use regex in bad ways to solve these problems when a parser with a proper BNF is the right approach.
Saved the same week · 26 links that week
- Dave Pell of NextDraft discusses fake news, tech, and startup investing
- The Ethical Minefields of Technology - Scientific American Blog Network
- Feedbin as a Multi-Device Reader
- Low-risk Monolith to Microservice Evolution Part I – Software Blog
- A Photo Tour of Apple’s New Flagship Chicago Store – MacStories