Simple Parser, Simple Code
ALeRT is one of my projects. It’s designed to show the properties of a grammar graphically. It was started out as a command-line script, I then added a website to allow anyone to run it. The website was still using the original script and now I want to refactor it to make the program more flexible. This series of posts will cover insights from that refactoring: Part 1: Simple parser, simple code Part 2: Checking refactoring with graph isomorphism (not yet posted) Simplifying the parser I used the PyParsing module to parse the user-provided grammar....