-
Defined pyparsing-specific warning classes so that they can be selectively enabled or disabled without affecting warnings raised by other libraries in the same Python app:
PyparsingWarning- base warning for all pyparsing-specific warnings (inherits fromUserWarning)PyparsingDeprecationWarning- warning for using deprecated features (inherits fromPyparsingWarningandDeprecationWarning)PyparsingDiagnosticWarning- warning raised when pyparsing diagnostics are enabled and a diagnostic feature is used (inherits fromPyparsingWarning)
-
Added
as_datetimeparse action topyparsing.common- a more generalized version of theconvert_to_datetimeparse action (supports any expression that extracts date/time fields into "year", "month", "day", etc. results names), and validates that the parsed fields represent a valid date and time. -
Added
iso8601_date_validatedandiso8601_datetime_validatedexpressions topyparsing.common, which return a Pythondatetime.datetime -
Various performance improvements in
ParseResultsclass and core functions, with 10-20% performance overall. -
Added
regex_inverterweb page (using PyScript) to demonstrate using theinv_regex.pyexample. -
Expanded regex forms handled by the
examples/inv_regex.pyexample:- named capturing groups (
?P<name>) - partial repetition (
{m,}and{,n}) - negated character classes (
[^...])
- named capturing groups (
-
Added
SPy(Simplified Python) parser to examples.