Permalink
Browse files

simplify grammar

  • Loading branch information...
1 parent 71e08dc commit 6d1caa6333c49d318401b20b38f6bd2b32637a56 @moritz committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/JSON/Tiny/Grammar.pm
View
@@ -3,7 +3,7 @@ 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>+ % [ \, ] ]? }

0 comments on commit 6d1caa6

Please sign in to comment.