# Parse shell one-liners with pyparsing | nvbn blog

<https://nvbn.github.io/2016/07/05/shell-ast/>

- Host: [nvbn.github.io](https://links.thingelstad.xyz/hosts/nvbn.github.io/)
- Saved: October 22, 2017 (2017-10-23T01:49:36Z)
- Record: https://links.thingelstad.xyz/links/a4c95366fb39/
- JSON: https://links.thingelstad.xyz/links/a4c95366fb39.json

## What Jamie wrote

The specific example in this blog post of using [Pyparsing](http://pyparsing.wikispaces.com) to write an [abstract syntax tree](https://en.wikipedia.org/wiki/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](http://wiki.planetkubb.com/wiki/Notation). 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](https://en.wikipedia.org/wiki/Backus–Naur_form) is the right approach.

## Facts

- Kind: [Page](https://links.thingelstad.xyz/kinds/page/)

## Appears in

- [WT25: Weekly Thing for October 28, 2017](https://weekly.thingelstad.com/archive/25/), Links 📌

## Mentions

- [pyparsing](https://links.thingelstad.xyz/links/074b7718304d/) (pyparsing.wikispaces.com, February 29, 2012)

## Saved the same week

- [Dave Pell of NextDraft discusses fake news, tech, and startup investing](https://links.thingelstad.xyz/links/9763b0aeb0dd/) (letterlist.com, October 20, 2017)
- [The Ethical Minefields of Technology - Scientific American Blog Network](https://links.thingelstad.xyz/links/d8e1a2f3d169/) (blogs.scientificamerican.com, October 20, 2017)
- [Feedbin as a Multi-Device Reader](https://links.thingelstad.xyz/links/c440292ac432/) (macdrifter.com, October 22, 2017)
- [Low-risk Monolith to Microservice Evolution Part I – Software Blog](https://links.thingelstad.xyz/links/d0c80d032046/) (blog.christianposta.com, October 22, 2017)
- [A Photo Tour of Apple’s New Flagship Chicago Store – MacStories](https://links.thingelstad.xyz/links/d3f59f9c8e21/) (macstories.net, October 22, 2017)

## Elsewhere

- Wayback Machine: https://web.archive.org/web/*/https://nvbn.github.io/2016/07/05/shell-ast/
