Home About Archives Search Feed

Parse shell one-liners with pyparsing | nvbn blog

🔒 nvbn.github.io

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.

Posted on October 22, 2017

← Next post    ·    Previous post →