FExpressionGrammar::DefineBinaryOperator

Define a binary operator for the specified symbol, with the specified precedence and associativity

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/ExpressionParserTypes.h

Include

#include "Misc/ExpressionParserTypes.h"

Syntax

template<typename TExpressionNode>
void DefineBinaryOperator
(
    int32 InPrecedence,
    EAssociativity InAssociativity,
    bool bCanShortCircuit
)

Remarks

Define a binary operator for the specified symbol, with the specified precedence and associativity

Associativity defaults to RightToLeft for legacy reasons.

Parameters

Parameter

Description

InPrecedence

The precedence (priority of execution) this operator should have

InAssociativity

With operators of the same precedence, determines whether they execute left to right, or right to left

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss