23 lines
1.7 KiB
Plaintext
23 lines
1.7 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_plan_migration_path ---
|
|
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_plan_migration_path\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-plan-migration-path-args-obj-9 ws "}"
|
|
|
|
whetstone-plan-migration-path-args-obj-9 ::= "{" ws whetstone-plan-migration-path-args-pair_id-pair-2 ws "," ws whetstone-plan-migration-path-args-source_runtime-pair-6 ws "," ws whetstone-plan-migration-path-args-target_runtime-pair-8 (ws "," ws whetstone-plan-migration-path-args-opt-10)* ws "}"
|
|
whetstone-plan-migration-path-args-opt-10 ::= whetstone-plan-migration-path-args-risk_score-pair-4
|
|
whetstone-plan-migration-path-args-pair_id-pair-2 ::= "\"pair_id\"" ws ":" ws string
|
|
whetstone-plan-migration-path-args-risk_score-pair-4 ::= "\"risk_score\"" ws ":" ws number
|
|
whetstone-plan-migration-path-args-source_runtime-pair-6 ::= "\"source_runtime\"" ws ":" ws string
|
|
whetstone-plan-migration-path-args-target_runtime-pair-8 ::= "\"target_runtime\"" ws ":" ws string
|