I just published pyparsing version 3.3.0b1, with some significant additions:
- example parser/interpreter of the TINY language (with AI transcript showing prompts and corresponding AI plans and actions)
- performance tests with scripts to run and tabulate results using pyparsing 3.1-3.3 and Python 3.9-3.14
Github link: https://github.com/pyparsing/pyparsing/releases/tag/3.3.0b1
Attached image is a TINY script to find prime numbers.
If you maintain an open source package, set up a standing search on scholar.google.com for your package name. You'll get gmail notifications of published papers referencing your package.
It's truly gratifying to see students and research teams making use of my pyparsing package to parse data sets and DSLs, so they can quickly get past the pesky parser development stage and get on with the business of their actual field of study. #pyparsing #python #google #oss #opensource
Pyparsing 3.2.2 cleans up a formerly internal-only utility method make_compressed_re(), and makes it part of the public API. Given a list of strings, it generates a regex to match those strings and only those (so no cheating like ".*").
Here are before/after expressions for matching chemical symbols.
Парсер для подростков с помощью pyparsing
Привет, Хабр! Если ты подросток и начинаешь свой путь в программировании, или просто хочешь понять, как программы анализируют текст и превращают его в структуру, эта статья для тебя. Сегодня поговорим о том, что такое парсер, зачем он нужен и как с помощью библиотеки pyparsing создать свой собственный парсер — основу для мини‑языка. Разберём, как создать парсер для арифметических выражений, добавить поддержку скобок, встроить вычисление выражений, работать с переменными и обрабатывать ошибки.
#Pyparsing API going back to version 1.0.0 (2003) has used a camelCase name scheme for its methods and argument names. In versions 3.0-3.1 (Oct 2021-Jun 2023), I added PEP8-compliant snake_case names, while maintaining synonym definitions for the legacy names for backward compatibility.
Soon, pyparsing will begin emitting DeprecationWarnings for the legacy names. To ease this transition, the next release 3.2.2 will include a utility to convert in place scripts that use the legacy names. #python
Pyparsing sightings - recent posts/pages using pyparsing (2/2):
- ciscoconfparse parses configuration files for various network devices using pyparsing
https://pypi.org/project/ciscoconfparse2/
- moto is a mocking package for AWS boto API, using pyparsing for an internal infix notation parser
https://github.com/getmoto/moto
- Pegasus SaaS application builder uses pyparsing internally
https://docs.saaspegasus.com/
- EasyABC is an editor for the ABC music notation language
https://github.com/jwdj/EasyABC
Pyparsing sightings - some recent posts/pages using pyparsing (1/2):
- Pyparsing is embedded as a parsing engine for Juniper Networks Junos PyEZ automation environment for smart devices.
https://www.juniper.net/documentation/us/en/software/junos-pyez/junos-pyez-developer/junos-pyez-developer.pdf
- Pyparsing included in the examples for the Python Packaging User Guide.
https://packaging.python.org/en/latest/guides/licensing-examples-and-user-scenarios/
- Papercrawler uses pyparsing to extract metadata from published papers, journals, and conference proceedings.
https://github.com/sucv/paperCrawler