File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ so edit it there in the git repository if you would like to make changes.
28
28
=head1 Overview
29
29
30
30
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> .
32
32
33
- =head1 Roles
33
+ =head1 Classes
34
34
35
35
=head2 Regex
36
36
@@ -45,11 +45,15 @@ Regex objects are created through the syntax described in S05:
45
45
They can be stored in variables for later use, as with the C<qr//> syntax
46
46
in Perl 5.
47
47
48
+ =over
49
+
48
50
=item method Bool(Regex:D: )
49
51
50
52
In boolean context, a regex object will match against C<$_>, and return
51
53
the result as a Bool.
52
54
55
+ =back
56
+
53
57
=head2 Match
54
58
55
59
class Match is Cool does Positional does Associative {
@@ -70,7 +74,7 @@ the result as a Bool.
70
74
71
75
=head2 Cursor
72
76
73
- role Cursor {
77
+ class Cursor {
74
78
method Int pos() {...}
75
79
method orig() {...}
76
80
}
@@ -83,6 +87,8 @@ Much as a class is a collection of named attributes and methods, a grammar
83
87
is a collection of named regexes and rules. For more on creating and using
84
88
grammars, see L<S05/Grammars>.
85
89
90
+ =over
91
+
86
92
=item parse / subparse
87
93
X<parse> X<subparse>
88
94
@@ -104,6 +110,8 @@ method does not add anchors, and will match substrings against the rule.
104
110
Parse the file as with C<.parse>, but matches the grammar against the contents
105
111
of C<$filename> instead.
106
112
113
+ =back
114
+
107
115
See Abstractions.pod
108
116
109
117
=head1 Additions
You can’t perform that action at this time.
0 commit comments