File tree Expand file tree Collapse file tree 3 files changed +262
-66
lines changed Expand file tree Collapse file tree 3 files changed +262
-66
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,10 @@ can be used and manipulated as below.
145
145
>> > string(' A' ).optional(' Oops' ).parse(' ' )
146
146
' Oops'
147
147
148
- .. method :: map(fn )
148
+ .. method :: map(map_function )
149
149
150
150
Returns a parser that transforms the produced value of the initial parser
151
- with ``fn ``.
151
+ with ``map_function ``.
152
152
153
153
.. code :: python
154
154
@@ -158,10 +158,10 @@ can be used and manipulated as below.
158
158
This is the simplest way to convert parsed strings into the data types
159
159
that you need. See also :meth: `combine ` and :meth: `combine_dict ` below.
160
160
161
- .. method :: combine(fn )
161
+ .. method :: combine(combine_fn )
162
162
163
163
Returns a parser that transforms the produced values of the initial parser
164
- with ``fn ``, passing the arguments using ``*args `` syntax.
164
+ with ``combine_fn ``, passing the arguments using ``*args `` syntax.
165
165
166
166
Where the current parser produces an iterable of values, this can be a
167
167
more convenient way to combine them than :meth: `~Parser.map `.
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ These are the lowest level building blocks for creating parsers.
196
196
197
197
.. function :: peek(parser)
198
198
199
- Returns a lookahead parser that parse the input stream without consuming
199
+ Returns a lookahead parser that parses the input stream without consuming
200
200
chars.
201
201
202
202
.. code-block: python
You can’t perform that action at this time.
0 commit comments