Skip to content

Commit

Permalink
[grammar] get rid of ugly >>>
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 13, 2010
1 parent 48d3cb3 commit 6af373e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/grammars.pod
Expand Up @@ -228,9 +228,9 @@ solution exists: I<reduction methods>, also called I<action methods>.
class JSON::Tiny::Actions {
method TOP($/) { make $/.values.[0].ast }
method object($/) { make $<pairlist>.ast.hash }
method pairlist($/) { make $<pair>>>.ast }
method pairlist($/) { make $<pair>».ast }
method pair($/) { make $<string>.ast => $<value>.ast }
method array($/) { make [$<value>>>.ast] }
method array($/) { make [$<value>».ast] }
method string($/) { make join '', $/.caps>>.value>>.ast }

# TODO: make that
Expand Down Expand Up @@ -335,8 +335,7 @@ submatch and turns it into a hash by calling its C<hash> method.
=begin programlisting

rule pairlist { [ <pair> ** [ \, ] ]? }
# TODO: make that » once RT #75434 is resolved
method pairlist($/) { make $<pair>>>.ast; }
method pairlist($/) { make $<pair>».ast; }

=end programlisting

Expand Down

0 comments on commit 6af373e

Please sign in to comment.