mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-09 21:58:00 -05:00
29 lines
706 B
Plaintext
29 lines
706 B
Plaintext
root ::= (tosay "\n")+ functioncalls?
|
|
|
|
tosay ::= [0-9a-zA-Z #%.?!]*
|
|
functioncalls ::=
|
|
"```homeassistant\n" (object ws)* "```"
|
|
|
|
value ::= object | array | string | number | ("true" | "false" | "null") ws
|
|
object ::=
|
|
"{" ws (
|
|
string ":" ws value
|
|
("," ws string ":" ws value)*
|
|
)? "}" ws
|
|
|
|
array ::=
|
|
"[" ws (
|
|
value
|
|
("," ws value)*
|
|
)? "]" ws
|
|
|
|
string ::=
|
|
"\"" (
|
|
[^"\\] |
|
|
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
|
|
)* "\"" ws
|
|
|
|
number ::= ("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)? ws
|
|
|
|
# Optional space: by convention, applied in this grammar after literal chars when allowed
|
|
ws ::= ([ \t\n] ws)? |