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

24 lines
1.9 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_executable_equivalence ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_verify_executable_equivalence\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-verify-executable-equivalence-args-obj-11 ws "}"
whetstone-verify-executable-equivalence-args-fuzz_seeds-1-arr-3 ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
whetstone-verify-executable-equivalence-args-fuzz_seeds-pair-4 ::= "\"fuzz_seeds\"" ws ":" ws whetstone-verify-executable-equivalence-args-fuzz_seeds-1-arr-3
whetstone-verify-executable-equivalence-args-obj-11 ::= "{" ws whetstone-verify-executable-equivalence-args-vectors-pair-10 (ws "," ws whetstone-verify-executable-equivalence-args-opt-12)* ws "}"
whetstone-verify-executable-equivalence-args-opt-12 ::= whetstone-verify-executable-equivalence-args-fuzz_seeds-pair-4 | whetstone-verify-executable-equivalence-args-property_trials-pair-6
whetstone-verify-executable-equivalence-args-property_trials-pair-6 ::= "\"property_trials\"" ws ":" ws integer
whetstone-verify-executable-equivalence-args-vectors-7-arr-9 ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
whetstone-verify-executable-equivalence-args-vectors-pair-10 ::= "\"vectors\"" ws ":" ws whetstone-verify-executable-equivalence-args-vectors-7-arr-9