Skip to content

Commit

Permalink
Type/Grammar: reflow and fix mis-capitalized word
Browse files Browse the repository at this point in the history
  • Loading branch information
taboege committed May 9, 2019
1 parent a394425 commit 05afa20
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/Type/Grammar.pod6
Expand Up @@ -58,11 +58,10 @@ sole positional argument.
Additional named arguments are used as options for matching, so you can specify
things like C<:pos(4)> to start parsing from the fourth (zero-base) character.
All L<matching adverbs|/language/regexes#Adverbs> are allowed, but not all of
them would take effort. There are several type of adverbs that a regex can have,
Some of the apply at compile time, like C<:s>, C<:i> etc. You cannot pass those
them take effect. There are several types of adverbs that a regex can have,
some of which apply at compile time, like C<:s> and C<:i>. You cannot pass those
to C<.parse>, because the regexes have already been compiled. But, you can pass
those adverbs that affect the runtime behavior, such as C<:pos>, C<:continue>,
are interpreted here.
those adverbs that affect the runtime behavior, such as C<:pos> and C<:continue>.
=for code :preamble<grammar RepeatChar {}>
say RepeatChar.parse('bbbbbb', :rule('start'), :args(\('b')), :pos(4)).Str;
Expand Down

0 comments on commit 05afa20

Please sign in to comment.