Permalink
Browse files

(mostly) account for new sigspace rules

  • Loading branch information...
1 parent 3f3a679 commit 1f01acdca19af68fb9808f3a308f85b3c7af7766 @moritz committed Jul 31, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/JSON/Tiny/Grammar.pm
View
@@ -1,12 +1,12 @@
use v6;
grammar JSON::Tiny::Grammar;
-rule TOP { ^[ <object> | <array> ]$ }
+rule TOP { ^ [ <object> | <array> ] $ }
rule object { '{' ~ '}' <pairlist> }
-rule pairlist { <pair>* % \, }
-rule pair { <string> ':' <value> }
+rule pairlist { <?> <pair>* % \, }
+rule pair { <?> <string> ':' <value> }
rule array { '[' ~ ']' <arraylist> }
-rule arraylist { <value>* % [ \, ] }
+rule arraylist { <?> <value>* % [ \, ] }
proto token value {*};
token value:sym<number> {

0 comments on commit 1f01acd

Please sign in to comment.