21 lines
1.5 KiB
Plaintext
21 lines
1.5 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_validate_patch_proposal ---
|
|
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_validate_patch_proposal\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-validate-patch-proposal-args-obj-7 ws "}"
|
|
|
|
whetstone-validate-patch-proposal-args-allowed_files-1-arr-3 ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
|
|
whetstone-validate-patch-proposal-args-allowed_files-pair-4 ::= "\"allowed_files\"" ws ":" ws whetstone-validate-patch-proposal-args-allowed_files-1-arr-3
|
|
whetstone-validate-patch-proposal-args-obj-7 ::= "{" ws whetstone-validate-patch-proposal-args-allowed_files-pair-4 ws "," ws whetstone-validate-patch-proposal-args-proposal-pair-6 ws "}"
|
|
whetstone-validate-patch-proposal-args-proposal-pair-6 ::= "\"proposal\"" ws ":" ws any-object
|