Skip to content

Commit

Permalink
Explain why token ws {} is in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Nov 25, 2015
1 parent e3655a5 commit 9e9b82a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/Language/grammars.pod
Expand Up @@ -184,4 +184,10 @@ C<parse>, which was possible because none of the action methods use attributes
In other cases, action methods might want to keep state in attributes. Then of
course you must pass an instance to method parse.
Note that C<token> C<ws> is special: when C<:sigspace> is enabled (and it is
when we are using C<rule>), it replaces certain whitespace sequences. This is
why the spaces around the equals sign in C<rule pair> work just fine and why
the whitespace before closing C<}> does not gobble up the newlines looked for
in C<token TOP>.
=end pod

0 comments on commit 9e9b82a

Please sign in to comment.