Skip to content

Commit d88b5d9

Browse files
committed
fix formatting on S32::Rules; role Cursor -> class Cursor
1 parent d96e2c2 commit d88b5d9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

S32-setting-library/Rules.pod

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ so edit it there in the git repository if you would like to make changes.
2828
=head1 Overview
2929

3030
This synopsis deals with objects produced by the regexes and grammars
31-
described in much greater detail in S05.
31+
described in much greater detail in L<S05>.
3232

33-
=head1 Roles
33+
=head1 Classes
3434

3535
=head2 Regex
3636

@@ -45,11 +45,15 @@ Regex objects are created through the syntax described in S05:
4545
They can be stored in variables for later use, as with the C<qr//> syntax
4646
in Perl 5.
4747

48+
=over
49+
4850
=item method Bool(Regex:D: )
4951

5052
In boolean context, a regex object will match against C<$_>, and return
5153
the result as a Bool.
5254

55+
=back
56+
5357
=head2 Match
5458

5559
class Match is Cool does Positional does Associative {
@@ -70,7 +74,7 @@ the result as a Bool.
7074

7175
=head2 Cursor
7276

73-
role Cursor {
77+
class Cursor {
7478
method Int pos() {...}
7579
method orig() {...}
7680
}
@@ -83,6 +87,8 @@ Much as a class is a collection of named attributes and methods, a grammar
8387
is a collection of named regexes and rules. For more on creating and using
8488
grammars, see L<S05/Grammars>.
8589

90+
=over
91+
8692
=item parse / subparse
8793
X<parse> X<subparse>
8894

@@ -104,6 +110,8 @@ method does not add anchors, and will match substrings against the rule.
104110
Parse the file as with C<.parse>, but matches the grammar against the contents
105111
of C<$filename> instead.
106112

113+
=back
114+
107115
See Abstractions.pod
108116

109117
=head1 Additions

0 commit comments

Comments
 (0)