Template Function blackbird::_expression

Function Documentation

template<typename T>
T blackbird::_expression(Visitor *V, blackbirdParser::ExpressionContext *ctx, T value)

Evaluate a blackbird expression.

This is a recursive function, that continually calls itself until the full expression has been evaluated.

Return
the expression value
Parameters
  • V: the Blackbird visitor
  • ctx: ExpressionContext
  • value: a dummy template argument that corresponds to the expected type of the expression value, as determined by the Blackbird type declarations.