SHARE
TWEET

Untitled

a guest Nov 16th, 2012 34 Never
  1.  
  2. start
  3.   = object:object { return object; }
  4.  
  5. object = (chars _)+
  6.  
  7. chars
  8.   = chars:char+ { return chars.join(""); }
  9.  
  10. char
  11.   // In the original JSON grammar: "any-Unicode-character-except-"-or-\-or-control-character"
  12.   = [a-z]
  13.  
  14.  
  15. /* ===== Whitespace ===== */
  16.  
  17. _ "whitespace"
  18.   = whitespace*
  19.  
  20. whitespace
  21.   = [ \t\n\r]
RAW Paste Data
Top