Navigation
API > API/Runtime > API/Runtime/Core
A lexical gammer defining how to parse an expression. Clients must define the tokens and operators to be interpreted by the parser.
| Name | FExpressionGrammar |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/ExpressionParserTypes.h |
| Include Path | #include "Misc/ExpressionParserTypes.h" |
Syntax
class FExpressionGrammar
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BinaryOperators | TMap< FGuid, FOpParameters > | Misc/ExpressionParserTypes.h | ||
| Groupings | TMap< FGuid, FGuid > | Misc/ExpressionParserTypes.h | ||
| PostUnaryOperators | TSet< FGuid > | Misc/ExpressionParserTypes.h | ||
| PreUnaryOperators | TSet< FGuid > | Misc/ExpressionParserTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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. | Misc/ExpressionParserTypes.h | |
void DefineGrouping() |
Define a grouping operator from two expression node types | Misc/ExpressionParserTypes.h | |
void DefinePostUnaryOperator() |
Define a post-unary operator for the specified symbol | Misc/ExpressionParserTypes.h | |
void DefinePreUnaryOperator() |
Define a pre-unary operator for the specified symbol | Misc/ExpressionParserTypes.h | |
const FOpParameters * GetBinaryOperatorDefParameters
(
const FGuid& TypeId |
Get the binary operator precedence and associativity parameters, for the specified symbol, if any | Misc/ExpressionParserTypes.h | |
| Retrieve the corresponding grouping token for the specified open group type, or nullptr if it's not a group token | Misc/ExpressionParserTypes.h | ||
bool HasPostUnaryOperator
(
const FGuid& TypeId |
Check if this grammar defines a post-unary operator for the specified symbol | Misc/ExpressionParserTypes.h | |
bool HasPreUnaryOperator
(
const FGuid& TypeId |
Check if this grammar defines a pre-unary operator for the specified symbol | Misc/ExpressionParserTypes.h |