Next: Plug-in declaration Up: QSAS Template Language (QTPL) Previous: Example: XY2Polar.qtpl Contents

## QTPL fundamentals: layout, punctuation, and names

`QTPL` grammar
  is loosely modelled on the `C` and `C++` languages. Blank lines and spaces may be used freely within template files to improve readability.

Multiple templates in a single file
  are not supported.

Comments
  are permitted anywhere in a template file. The `C++` comment-introducer `//` is used in `QTPL` to signify that whatever follows it until the end of the line is a comment.

Keywords (reserved words)
  in `QTPL` are written all-uppercase, e.g. `FLOAT`.

Declarations and definitions
  of plug-in functions and argument attributes are delimited by curly braces `{}`, which may be nested.

Strings
  of printable characters, which may include spaces and the newline-specifier `n`, are enclosed in `ASCII` double-quotes e.g. `"line 1nline 2"`. The maximum permitted string-length is 16,000 characters.

Variable names
  in `QTPL` are sequences of letters, digits, underscore and percent characters of arbitrary length; they must begin with a letter, and must be unique within each plug-in template.

Next: Plug-in declaration Up: QSAS Template Language (QTPL) Previous: Example: XY2Polar.qtpl Contents