What is Backus-Naur formalism?
The Qlik Sense command line syntax and script
syntax are described in a notation called
The following table provides a list of symbols used in
Symbol | Description |
---|---|
| | Logical |
( ) | Parentheses defining precedence: used for structuring
the |
[ ] | Square brackets: enclosed items are optional. |
{ } | Braces: enclosed items may be repeated zero or more times. |
Symbol | A non-terminal syntactic category, that: can be divided further into other symbols. For example, compounds of the above, other non-terminal symbols, text strings, and so on. |
::= | Marks the beginning of a block that defines a symbol. |
LOAD | A terminal symbol consisting of a text string. Should be written as it is into the script. |
All terminal symbols are printed in a bold face font. For example, "(" should be interpreted as a parenthesis defining precedence, whereas "(" should be interpreted as a character to be printed in the script.
Example:
The description of the alias statement is:
alias fieldname as aliasname { , fieldname as aliasname}
This should be interpreted as the text string "alias", followed
by an arbitrary field name, followed by the text string "as",
followed by an arbitrary alias name. Any number of additional combinations
of "
The following statements are correct:
alias a as first;
alias a as first, b as second;
alias a as first, b as second, c as third;
The following statements are not correct:
alias a as first b as second;
alias a as first { , b as second };