Opened 6 days ago
Closed 5 days ago
#21332 closed enhancement (fixed)
pyparsing-3.2.2 (Python Module)
Reported by: | Douglas R. Reno | Owned by: | Bruce Dubbs |
---|---|---|---|
Priority: | normal | Milestone: | 12.4 |
Component: | BOOK | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
New point version
Change History (3)
comment:1 by , 6 days ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 5 days ago
comment:3 by , 5 days ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed at commits
f0c65a3d73 Update to unrar-7.1.6. 032c82bf14 Update to pyparsing-3.2.2 (Python Module). da9440fca8 Update to libevdev-1.13.4.
Note:
See TracTickets
for help on using tickets.
Version 3.2.2 - March, 2025
cvt_pyparsing_pep8_names.py
conversion utility to upgrade pyparsing-based programs and libraries that use legacy camelCase names to use the new PEP8-compliant snake_case method names. The converter can also be imported into other scripts asnested_expr
where nested contents were stripped of whitespace when the default whitespace characters were cleared (raised in this StackOverflow question https://stackoverflow.com/questions/79327649). Also addressed bug in resolving PEP8 compliant argument name and legacy argument name.rest_of_line
and the underlyingRegex
class, in which matching a pattern that could match an empty string (such as".*"
or"[A-Z]*"
would not raise aParseException
at or beyond the end of the input string. This could cause an infinite parsing loop when parsingrest_of_line
at the end of the input string.pyparsing.util.make_compressed_re
- see usage inexamples/complex_chemical_formulas.py
and result in the generated railroad diagramexamples/complex_chemical_formulas_diagram.html
. Properly escapes characters like "." and "*" that have special meaning in regular expressions.one_of()
to properly escape characters that are regular expression markers (such as '*', '+', '?', etc.) before building the internal regex.MatchFirst
andOr
expressions, showing all alternatives rather than just the first one.__init__()
methods, to satisfymypy --strict
type checking. PR submitted by FeRD, thank you!show_hidden
tocreate_diagram
to show elements that are used internally by pyparsing, but are not part of the actual parser grammar. For instance, theTag
class can insert values into the parsed results but it does not actually parse any input, so by default it is not included in a railroad diagram. By callingcreate_diagram
withshow_hidden
=True
, these internal elements will be included. (You can see this in the tag_metadata.py script in the examples directory.)number_words.py
example. Also addedebnf_number_words.py
to demonstrate using theebnf.py
EBNF parser generator to build a similar parser directly from EBNF.bigquery_view_parser.py
, invalid escape sequence "\s".