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

22 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_reduce_repro_command ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_reduce_repro_command\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-reduce-repro-command-args-obj-7 ws "}"
whetstone-reduce-repro-command-args-command-pair-2 ::= "\"command\"" ws ":" ws string
whetstone-reduce-repro-command-args-obj-7 ::= "{" ws whetstone-reduce-repro-command-args-command-pair-2 (ws "," ws whetstone-reduce-repro-command-args-opt-8)* ws "}"
whetstone-reduce-repro-command-args-opt-8 ::= whetstone-reduce-repro-command-args-removable_flags-pair-6
whetstone-reduce-repro-command-args-removable_flags-3-arr-5 ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
whetstone-reduce-repro-command-args-removable_flags-pair-6 ::= "\"removable_flags\"" ws ":" ws whetstone-reduce-repro-command-args-removable_flags-3-arr-5