Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/ExpressionParserTypes.h |
Include | #include "Misc/ExpressionParserTypes.h" |
Syntax
class FExpressionGrammar
Remarks
A lexical gammer defining how to parse an expression. Clients must define the tokens and operators to be interpreted by the parser.
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | DefineBinaryOperator
(
int32 InPrecedence, |
Define a binary operator for the specified symbol, with the specified precedence and associativity NOTE: Associativity defaults to RightToLeft for legacy reasons. |
![]() |
void | Define a grouping operator from two expression node types | |
![]() |
void | Define a post-unary operator for the specified symbol | |
![]() |
void | Define a pre-unary operator for the specified symbol | |
![]() ![]() |
const FOpParameters * | GetBinaryOperatorDefParameters
(
const FGuid& TypeId |
Get the binary operator precedence and associativity parameters, for the specified symbol, if any |
![]() ![]() |
const FGuid * | GetGrouping
(
const FGuid& TypeId |
Retrieve the corresponding grouping token for the specified open group type, or nullptr if it's not a group token |
![]() ![]() |
bool | HasPostUnaryOperator
(
const FGuid& TypeId |
Check if this grammar defines a post-unary operator for the specified symbol |
![]() ![]() |
bool | HasPreUnaryOperator
(
const FGuid& TypeId |
Check if this grammar defines a pre-unary operator for the specified symbol |