Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix formatting on S32::Rules; role Cursor -> class Cursor
  • Loading branch information
labster committed Jul 12, 2013
1 parent d96e2c2 commit d88b5d9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions S32-setting-library/Rules.pod
Expand Up @@ -28,9 +28,9 @@ so edit it there in the git repository if you would like to make changes.
=head1 Overview

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

=head1 Roles
=head1 Classes

=head2 Regex

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

=over

=item method Bool(Regex:D: )

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

=back

=head2 Match

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

=head2 Cursor

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

=over

=item parse / subparse
X<parse> X<subparse>

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

=back

See Abstractions.pod

=head1 Additions
Expand Down

0 comments on commit d88b5d9

Please sign in to comment.