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

21 lines
1.3 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_run_interop_testbed ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_run_interop_testbed\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-run-interop-testbed-args-obj-5 ws "}"
whetstone-run-interop-testbed-args-manifest_id-pair-2 ::= "\"manifest_id\"" ws ":" ws string
whetstone-run-interop-testbed-args-obj-5 ::= "{" ws whetstone-run-interop-testbed-args-manifest_id-pair-2 (ws "," ws whetstone-run-interop-testbed-args-opt-6)* ws "}"
whetstone-run-interop-testbed-args-opt-6 ::= whetstone-run-interop-testbed-args-vendor_id-pair-4
whetstone-run-interop-testbed-args-vendor_id-pair-4 ::= "\"vendor_id\"" ws ":" ws string