Command Syntax
HMP follows the standard command-line conventions of a command followed by positional arguments delimited by spaces. When the command is executed, HMP assigns the values of these arguments to the corresponding parameters of the command's definition.
Arguments that contain whitespace (e.g., spaces or tabs) must be represented with quoted strings. Arguments that contain certain special characters must be represented with quoted strings and the special characters must be encoded using escape sequences.
Quoted Strings
HMP uses spaces (code U+0020) to separate the name of command and its list of arguments. Arguments that contain spaces must be represented with quoted strings. A quote character (code U+0022) indicates the beginning or end of a quoted string. For example:
updateMetadata UUID title Jan01-Room101
updateMetadata UUID title "January 1st - Room 101"
Escape Sequences
Within a quoted string, the backslash character (code U+005C) is used to escape certain special characters. Outside of a quoted string, the backslash character is a normal character. A quote character (code U+0022) indicates the beginning or end of a quoted string.
Escape Sequence | Name | Code |
---|---|---|
| Line feed | U+000A |
| Quote | U+0020 |
| Backslash | U+005C |