Skip to content

Pyparsing 3.1.0b2

Pre-release
Pre-release
Compare
Choose a tag to compare
@ptmcg ptmcg released this 20 May 02:51
· 83 commits to master since this release
  • Updated create_diagram() code to be compatible with railroad-diagrams package version 3.0. Fixes Issue #477 (railroad diagrams generated with black bars), reported by Sam Morley-Short.

  • Fixed bug in NotAny, where parse actions on the negated expr were not being run. This could cause NotAny to incorrectly fail if the expr would normally match, but would fail to match if a condition used as a parse action returned False. Fixes Issue #482, raised by byaka, thank you!

  • Fixed create_diagram() to accept keyword args, to be passed through to the template.render() method to generate the output HTML (PR submitted by Aussie Schnore, good catch!)

  • Fixed bug in python_quoted_string regex.

  • Added examples/bf.py Brainf*ck parser/executor example. Illustrates using a pyparsing grammar to parse language syntax, and attach executable AST nodes to the parsed results.