Skip to content

Commit be4208a

Browse files
committed
Decapitalize and rewrite a bit
1 parent afd5944 commit be4208a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/Language/grammars.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ into effect for the Regex:
8383
say so 'once upon a time' ~~ &space-y; # OUTPUT: «True␤»
8484
=end code
8585
86-
=head1 X<Creating Grammars>
86+
=head1 X<Creating grammars>
8787
=SUBTITLE Group of named regexes that form a formal grammar
8888
8989
L<Grammar|/type/Grammar> is the superclass that classes automatically get when
@@ -177,7 +177,7 @@ calculator:
177177
All we had to add are additional rule and action to the C<calc-op> group and
178178
the thing works—all thanks to proto regexes.
179179
180-
=head2 Special Tokens
180+
=head2 Special tokens
181181
182182
183183
=head3 X<C<TOP>|TOP>
@@ -257,7 +257,7 @@ adverb for that particular regex:
257257
This comes in handy when you're already differentiating the proto regexes with the strings
258258
you're going to match, as using C«<sym>» token prevents repetition of those strings.
259259
260-
=head3 X«Always Succeed Assertion| <?>»
260+
=head3 X«"Always succeed" assertion| <?>»
261261
262262
The C«<?>» is the I<always succeed> assertion. When used as a grammar
263263
token, it can be used to trigger an Action class method. In the following
@@ -409,7 +409,7 @@ attributes can be accessed in the match returned after parsing if made public:
409409
say $<field>».invalid;
410410
# OUTPUT: [(Bool) True]
411411
412-
=head1 X<Action Objects|Actions>
412+
=head1 X<Action objects|Actions>
413413
414414
A successful grammar match gives you a parse tree of L<Match|/type/Match>
415415
objects, and the deeper that match tree gets, and the more branches in the

doc/Type/Sub.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ operators separate the two parts by white space.
3636
3737
Note that subs that go by the same name as
3838
L<coercers|/language/typesystem#Coercion> will not take precedence over
39-
coercers. To call them use the C<&>-sigil.
39+
them. Use the C<&>-sigil to call them.
4040
4141
sub Int(Str $s){'what?'};
4242
say [Int, Int('42'),&Int('42')];
@@ -51,7 +51,7 @@ Any sub can be accessed via a closure from any outer scope.
5151
=head1 Traits
5252
X<|trait_mod (declarator)>
5353
54-
A Trait is a sub that is applied at compile time to various objects like
54+
A C<Trait> is a sub that is applied at compile time to various objects like
5555
classes, routines or L<containers|/language/phasers#index-entry-will_trait>. It
5656
is declared with the C<trait_mod> declarator followed by a colon and a string
5757
literal containing the name of the trait. A single positional parameter defines

0 commit comments

Comments
 (0)