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_debug_until_green ---
|
|
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_debug_until_green\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-debug-until-green-args-obj-9 ws "}"
|
|
|
|
whetstone-debug-until-green-args-apply_patches-pair-2 ::= "\"apply_patches\"" ws ":" ws boolean
|
|
whetstone-debug-until-green-args-command-pair-4 ::= "\"command\"" ws ":" ws string
|
|
whetstone-debug-until-green-args-context_budget-pair-6 ::= "\"context_budget\"" ws ":" ws string
|
|
whetstone-debug-until-green-args-max_iterations-pair-8 ::= "\"max_iterations\"" ws ":" ws integer
|
|
whetstone-debug-until-green-args-obj-9 ::= "{" ws whetstone-debug-until-green-args-command-pair-4 (ws "," ws whetstone-debug-until-green-args-opt-10)* ws "}"
|
|
whetstone-debug-until-green-args-opt-10 ::= whetstone-debug-until-green-args-apply_patches-pair-2 | whetstone-debug-until-green-args-context_budget-pair-6 | whetstone-debug-until-green-args-max_iterations-pair-8
|