Files
whetstone_DSL/tools/mcp/grammars/whetstone_track_migration_progress.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_track_migration_progress ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_track_migration_progress\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-track-migration-progress-args-obj-7 ws "}"
whetstone-track-migration-progress-args-action-pair-2 ::= "\"action\"" ws ":" ws string
whetstone-track-migration-progress-args-obj-7 ::= "{" ws whetstone-track-migration-progress-args-action-pair-2 ws "," ws whetstone-track-migration-progress-args-pair_id-pair-4 (ws "," ws whetstone-track-migration-progress-args-opt-8)* ws "}"
whetstone-track-migration-progress-args-opt-8 ::= whetstone-track-migration-progress-args-total_steps-pair-6
whetstone-track-migration-progress-args-pair_id-pair-4 ::= "\"pair_id\"" ws ":" ws string
whetstone-track-migration-progress-args-total_steps-pair-6 ::= "\"total_steps\"" ws ":" ws integer