About Spectre Expressions

Spectre uses a simple expression language that is designed to be clean and consistent. Spectre expressions can be used in numerous contexts by changing the set of available functions and their behavior and can be parsed without regard for the context.

Spectre expressions are used in varying combinations for build, cplan, dive, measures, and qvset files. They are also available to ProDiver column calculations. A Spectre expression starts and ends with a backtick character (`).

The expression grammar supports the following data types, operators, and functions:

  • Numbers, strings, and Booleans
  • Nulls (no data) and unknowns (uncomputable values)
  • Math and comparison operators
  • Logical operators (and, or, not)
  • Calculation functions

Each Spectre file type supports expressions for different sets of tags.

See also: