You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
240 B
Racket
18 lines
240 B
Racket
8 years ago
|
#lang brag
|
||
8 years ago
|
|
||
|
;; Simple baby example of JSON structure
|
||
8 years ago
|
json: number
|
||
|
| string
|
||
8 years ago
|
| array
|
||
8 years ago
|
| object
|
||
|
|
||
8 years ago
|
number: NUMBER
|
||
|
|
||
|
string: STRING
|
||
|
|
||
|
array: "[" [json ("," json)*] "]"
|
||
|
|
||
8 years ago
|
object: <"{"> [kvpair ("," kvpair)*] <"}">
|
||
8 years ago
|
|
||
8 years ago
|
kvpair: <ID> <":"> json
|