@@ -5,8 +5,8 @@ Using the pyparsing module
5
5
:author: Paul McGuire
6
6
:address: ptmcg.pm+pyparsing@gmail.com
7
7
8
- :revision: 3.1.0
9
- :date: April , 2023
8
+ :revision: 3.1.1
9
+ :date: July , 2023
10
10
11
11
:copyright: Copyright |copy | 2003-2023 Paul McGuire.
12
12
@@ -42,7 +42,7 @@ synonyms, but the synonyms will be removed in a future release.*
42
42
43
43
*If you are using this documentation, but working with a 2.4.x version of pyparsing,
44
44
you'll need to convert methods and arguments from the documented snake_case
45
- names to the legacy camelCase names. In pyparsing 3.0.x, both forms are
45
+ names to the legacy camelCase names. In pyparsing 3.0.x and 3.1.x , both forms are
46
46
supported, but the legacy forms are deprecated; they will be dropped in a
47
47
future release. *
48
48
@@ -58,8 +58,8 @@ To parse an incoming data string, the client code must follow these steps:
58
58
this to a program variable. Optional results names or parse
59
59
actions can also be defined at this time.
60
60
61
- 2. Call ``parse_string() `` or ``scan_string() `` on this variable, passing in
62
- the string to
61
+ 2. Call ``parse_string() ``, ``scan_string() ``, or `` search_string() ``
62
+ on this variable, passing in the string to
63
63
be parsed. During the matching process, whitespace between
64
64
tokens is skipped by default (although this can be changed).
65
65
When token matches occur, any defined parse action methods are
@@ -692,6 +692,8 @@ Expression subclasses
692
692
parse element is not found in the input string; parse action will only
693
693
be called if a match is found, or if a default is specified.
694
694
695
+ An optional element ``expr `` can also be expressed using ``expr | "" ``.
696
+
695
697
(``Opt `` was formerly named ``Optional ``, but since the standard Python
696
698
library module ``typing `` now defines ``Optional ``, the pyparsing class has
697
699
been renamed to ``Opt ``. A compatibility synonym ``Optional `` is defined,
0 commit comments