FB3Group BKB |
HomeService and SupportManual
|
||||||
| |||||||
Syntax
API Syntax
Commands and answers of the uDraw(Graph) API are so called "terms"
that can be built hierarchically by applying substitution rules of the
syntax definition.
The syntax of
For example, consider the following rules:
Here are some examples for valid commands with respect to this simple grammar:
Usually, white space (i.e. space, tab or return/newline characters
between non-terminal symbols) is allowed, but should not be
used in a term to reduce the amount of transmitted data.
Return or newline characters must not be used in a term if sent to
the API.
The reason for this restriction is that a newline character is
required to signal the end of a command if sent on a pipe.
So with a newline inside, the term will be split at this position,
resulting in a syntax error for the command fragment.
If you need to have newline characters inside of a string (e.g.
to visualize
Note:
Because Tcl/Tk is used for the implementation of the uDraw(Graph)
user interface, some characters have a special meaning.
Braces ("{" and "}") are used as delimiters for sending strings
to Tcl/Tk.
As a restriction, you cannot use unbalanced braces somewhere inside
of an API
|
|||||||
|
|||||||