operandDefinition

Declares a single parameter of a function definition, consisting of a name and its type. Operand names are available as local identifiers within the function body.

Examples

Single typed parameter

define function "Square"(x Integer) returns Integer:
  x * x

Multiple parameters with different types

define function "BMI"(weight Decimal, heightM Decimal) returns Decimal:
  weight / (heightM * heightM)
Railroad Diagram
100%
referentialIdentifier typeSpecifier

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

operandDefinition
  : referentialIdentifier typeSpecifier
  ;

Used In