Complete sprints 163-165 strict MCP grammar pipeline and enforcement

This commit is contained in:
Bill
2026-02-25 17:25:36 -07:00
parent 45b8bb13b9
commit 07ed58ddc3
402 changed files with 43765 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# ---------------------------------------------------------------------------
# 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_transpile_systems_family ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_transpile_systems_family\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-transpile-systems-family-args-obj-9 ws "}"
whetstone-transpile-systems-family-args-obj-9 ::= "{" ws whetstone-transpile-systems-family-args-source-pair-4 ws "," ws whetstone-transpile-systems-family-args-source_language-pair-6 ws "," ws whetstone-transpile-systems-family-args-target_language-pair-8 (ws "," ws whetstone-transpile-systems-family-args-opt-10)* ws "}"
whetstone-transpile-systems-family-args-opt-10 ::= whetstone-transpile-systems-family-args-profile-pair-2
whetstone-transpile-systems-family-args-profile-pair-2 ::= "\"profile\"" ws ":" ws string
whetstone-transpile-systems-family-args-source-pair-4 ::= "\"source\"" ws ":" ws string
whetstone-transpile-systems-family-args-source_language-pair-6 ::= "\"source_language\"" ws ":" ws string
whetstone-transpile-systems-family-args-target_language-pair-8 ::= "\"target_language\"" ws ":" ws string