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

20 lines
1.3 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_get_semantic_annotations ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_get_semantic_annotations\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-get-semantic-annotations-args-obj-4 ws "}"
whetstone-get-semantic-annotations-args-nodeId-pair-2 ::= "\"nodeId\"" ws ":" ws string
whetstone-get-semantic-annotations-args-obj-4 ::= "{" ws (whetstone-get-semantic-annotations-args-opt-3 (ws "," ws whetstone-get-semantic-annotations-args-opt-3)*)? ws "}"
whetstone-get-semantic-annotations-args-opt-3 ::= whetstone-get-semantic-annotations-args-nodeId-pair-2