23 lines
1.6 KiB
Plaintext
23 lines
1.6 KiB
Plaintext
# ---------------------------------------------------------------------------
|
|
# JSON primitives
|
|
# ---------------------------------------------------------------------------
|
|
ws ::= [ \t\n\r]*
|
|
string ::= "\"" ([^"\\\x7F\x00-\x1F] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]))* "\""
|
|
number ::= "-"? ([0-9] | [1-9] [0-9]*) ("." [0-9]+)? ([eE] [-+]? [0-9]+)?
|
|
integer ::= "-"? ([0-9] | [1-9] [0-9]*)
|
|
boolean ::= "true" | "false"
|
|
null ::= "null"
|
|
any-value ::= string | number | boolean | null | any-object | any-array
|
|
any-object ::= "{" ws (string ws ":" ws any-value (ws "," ws string ws ":" ws any-value)*)? ws "}"
|
|
any-array ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
|
|
|
|
# --- whetstone_queue_ready ---
|
|
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_queue_ready\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-queue-ready-args-obj-9 ws "}"
|
|
|
|
whetstone-queue-ready-args-normalizedRequirements-1-arr-3 ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
|
|
whetstone-queue-ready-args-normalizedRequirements-pair-4 ::= "\"normalizedRequirements\"" ws ":" ws whetstone-queue-ready-args-normalizedRequirements-1-arr-3
|
|
whetstone-queue-ready-args-obj-9 ::= "{" ws whetstone-queue-ready-args-tasks-pair-8 (ws "," ws whetstone-queue-ready-args-opt-10)* ws "}"
|
|
whetstone-queue-ready-args-opt-10 ::= whetstone-queue-ready-args-normalizedRequirements-pair-4
|
|
whetstone-queue-ready-args-tasks-5-arr-7 ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
|
|
whetstone-queue-ready-args-tasks-pair-8 ::= "\"tasks\"" ws ":" ws whetstone-queue-ready-args-tasks-5-arr-7
|