Skip to content

Commit c125a14

Browse files
authored
Fix link
1 parent 71b822c commit c125a14

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/Language/grammars.pod6

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ L<action object|/language/grammars#Action_Objects> is recommended to be used in
9393
conjunction with the grammar.
9494
9595
96-
=head2 X<Proto regexes| sym; :sym<>; proto regex>
96+
=head2 X«Proto regexes| sym; :sym<>; proto regex»
9797
9898
If you have a lot of alternations, it may become difficult to produce
9999
readable code or subclass your grammar. In the Actions class below, the
@@ -363,7 +363,8 @@ A slightly more involved example follows:
363363
}
364364
}
365365
366-
my $res = KeyValuePairs.parse(q:to/EOI/, :actions(KeyValuePairsActions)).made;
366+
my $actions = KeyValuePairsActions.new;
367+
my $res = KeyValuePairs.parse(q:to/EOI/, :$actions).made;
367368
second=b
368369
hits=42
369370
perl=6
@@ -376,11 +377,11 @@ A slightly more involved example follows:
376377
377378
This produces the following output:
378379
379-
=begin code :lang<text>
380-
Key: second Value: b
381-
Key: hits Value: 42
382-
Key: perl Value: 6
383-
=end code
380+
=begin code :lang<text>
381+
Key: second Value: b
382+
Key: hits Value: 42
383+
Key: perl Value: 6
384+
=end code
384385
385386
Rule C<pair>, which parsed a pair separated by an equals sign, aliases the two
386387
calls to token C<identifier> to separate capture names to make them available

0 commit comments

Comments
 (0)