nvbn.github.io · Saved

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

Everything saved in October 2017