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
236 B
Racket
18 lines
236 B
Racket
3 years ago
|
#lang yaragg
|
||
7 years ago
|
|
||
|
;; Simple baby example of JSON structure
|
||
|
json: number
|
||
|
| string
|
||
|
| array
|
||
|
| object
|
||
|
|
||
|
number: NUMBER
|
||
|
|
||
|
string: STRING
|
||
|
|
||
|
array: "[" (json ("," json)*)? "]"
|
||
|
|
||
|
object: "{" (kvpair ("," kvpair)*)? "}"
|
||
|
|
||
|
kvpair: ID ":" json
|