Skip to content

Commit a3852b7

Browse files
committed
remove wrong invocant parameter to Grammar's parse methods
they are not only confusing to beginners, but also wrong (as in: i use parse with a Grammar type object all the time)
1 parent 5475aad commit a3852b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Language/grammars.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ be used in conjunction with the grammar.
110110
111111
=head3 method parse
112112
113-
method parse(Grammar:D: $str, :$rule = 'TOP', :$actions) returns Match:D
113+
method parse($str, :$rule = 'TOP', :$actions) returns Match:D
114114
115115
Matches the grammar against C<$str>, using C<$rule> as the starting rule,
116116
optionally applying C<$actions> as actions object.
@@ -153,7 +153,7 @@ This outputs:
153153
154154
=head3 method subparse
155155
156-
method subparse(Grammar:D: $str, :$rule = 'TOP', :$actions) returns Match:D
156+
method subparse($str, :$rule = 'TOP', :$actions) returns Match:D
157157
158158
Matches the grammar against C<$str>, using C<$rule> as the starting rule,
159159
optionally applying C<$actions> as actions object.
@@ -163,7 +163,7 @@ of the supplied string.
163163
164164
=head3 method parsefile
165165
166-
method parsefile(Grammar:D: Cool $filename as Str, *%opts) returns Match:D
166+
method parsefile(Cool $filename as Str, *%opts) returns Match:D
167167
168168
Parses the contents of the file C<$filename> with the L<parse> method,
169169
passing along any named options in C<%opts>.

0 commit comments

Comments
 (0)