Skip to content

Commit

Permalink
Update JSON in ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed May 27, 2012
1 parent 3cccd5d commit 269d68c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/JSON/Tiny/Grammar.pm
Expand Up @@ -3,10 +3,10 @@ grammar JSON::Tiny::Grammar;

rule TOP { ^[ <object> | <array> ]$ }
rule object { '{' ~ '}' <pairlist> }
rule pairlist { [ <pair>+ % [ \, ] ]? }
rule pairlist { <pair>* % \, }
rule pair { <string> ':' <value> }
rule array { '[' ~ ']' <arraylist> }
rule arraylist { [ <value>+ % [ \, ] ]? }
rule arraylist { <value>* % [ \, ] }

proto token value {*};
token value:sym<number> {
Expand Down

0 comments on commit 269d68c

Please sign in to comment.