24 lines
1.7 KiB
Plaintext
24 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_apply_annotation ---
|
|
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_apply_annotation\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-apply-annotation-args-obj-11 ws "}"
|
|
|
|
whetstone-apply-annotation-args-annotationType-pair-2 ::= "\"annotationType\"" ws ":" ws string
|
|
whetstone-apply-annotation-args-confidence-pair-4 ::= "\"confidence\"" ws ":" ws number
|
|
whetstone-apply-annotation-args-nodeId-pair-6 ::= "\"nodeId\"" ws ":" ws string
|
|
whetstone-apply-annotation-args-obj-11 ::= "{" ws whetstone-apply-annotation-args-annotationType-pair-2 ws "," ws whetstone-apply-annotation-args-nodeId-pair-6 ws "," ws whetstone-apply-annotation-args-strategy-pair-10 (ws "," ws whetstone-apply-annotation-args-opt-12)* ws "}"
|
|
whetstone-apply-annotation-args-opt-12 ::= whetstone-apply-annotation-args-confidence-pair-4 | whetstone-apply-annotation-args-reason-pair-8
|
|
whetstone-apply-annotation-args-reason-pair-8 ::= "\"reason\"" ws ":" ws string
|
|
whetstone-apply-annotation-args-strategy-pair-10 ::= "\"strategy\"" ws ":" ws string
|