pyparsing

3.3.2 · active · verified Sat Mar 28

pyparsing is a Python library for defining and executing parsing grammars, currently at version 3.3.2, with a release cadence of regular updates.

Warnings

Install

Imports

Quickstart

A simple example to parse a greeting using pyparsing.

from pyparsing import Word, alphas

greet = Word(alphas) + "," + Word(alphas) + "!"
hello = "Hello, World!"
print(hello, "->", greet.parse_string(hello))

view raw JSON →