engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FExpressionGrammar类 参考

A lexical gammer defining how to parse an expression. 更多...

#include <ExpressionParserTypes.h>

Public 成员函数

template<typename TExpressionNode >
void DefineBinaryOperator (int32 InPrecedence, EAssociativity InAssociativity=EAssociativity::RightToLeft, bool bCanShortCircuit=false)
 Define a binary operator for the specified symbol, with the specified precedence and associativity NOTE: Associativity defaults to RightToLeft for legacy reasons. 更多...
 
template<typename TStartGroup , typename TEndGroup >
void DefineGrouping ()
 Define a grouping operator from two expression node types
 
template<typename TExpressionNode >
void DefinePostUnaryOperator ()
 Define a post-unary operator for the specified symbol
 
template<typename TExpressionNode >
void DefinePreUnaryOperator ()
 Define a pre-unary operator for the specified symbol
 
const FOpParameters * GetBinaryOperatorDefParameters (const FGuid &TypeId) const
 Get the binary operator precedence and associativity parameters, for the specified symbol, if any
 
const FGuid * GetGrouping (const FGuid &TypeId) const
 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) const
 Check if this grammar defines a post-unary operator for the specified symbol
 
bool HasPreUnaryOperator (const FGuid &TypeId) const
 Check if this grammar defines a pre-unary operator for the specified symbol
 

详细描述

A lexical gammer defining how to parse an expression.

Clients must define the tokens and operators to be interpreted by the parser.

成员函数说明

◆ DefineBinaryOperator()

template<typename TExpressionNode >
void FExpressionGrammar::DefineBinaryOperator ( int32  InPrecedence,
EAssociativity  InAssociativity = EAssociativity::RightToLeft,
bool  bCanShortCircuit = false 
)
inline

Define a binary operator for the specified symbol, with the specified precedence and associativity NOTE: Associativity defaults to RightToLeft for legacy reasons.

参数
InPrecedenceThe precedence (priority of execution) this operator should have
InAssociativityWith operators of the same precedence, determines whether they execute left to right, or right to left

该类的文档由以下文件生成: