Files
whetstone_DSL/tools/mcp/grammars/whetstone_verify_api_compatibility.gbnf

25 lines
2.1 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_verify_api_compatibility ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_verify_api_compatibility\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-verify-api-compatibility-args-obj-13 ws "}"
whetstone-verify-api-compatibility-args-added_endpoints-1-arr-3 ::= "[" ws (string (ws "," ws string)*)? ws "]"
whetstone-verify-api-compatibility-args-added_endpoints-pair-4 ::= "\"added_endpoints\"" ws ":" ws whetstone-verify-api-compatibility-args-added_endpoints-1-arr-3
whetstone-verify-api-compatibility-args-api_id-pair-6 ::= "\"api_id\"" ws ":" ws string
whetstone-verify-api-compatibility-args-obj-13 ::= "{" ws whetstone-verify-api-compatibility-args-api_id-pair-6 (ws "," ws whetstone-verify-api-compatibility-args-opt-14)* ws "}"
whetstone-verify-api-compatibility-args-opt-14 ::= whetstone-verify-api-compatibility-args-added_endpoints-pair-4 | whetstone-verify-api-compatibility-args-removed_endpoints-pair-10 | whetstone-verify-api-compatibility-args-strict_mode-pair-12
whetstone-verify-api-compatibility-args-removed_endpoints-7-arr-9 ::= "[" ws (string (ws "," ws string)*)? ws "]"
whetstone-verify-api-compatibility-args-removed_endpoints-pair-10 ::= "\"removed_endpoints\"" ws ":" ws whetstone-verify-api-compatibility-args-removed_endpoints-7-arr-9
whetstone-verify-api-compatibility-args-strict_mode-pair-12 ::= "\"strict_mode\"" ws ":" ws boolean