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.
|
inline |
Define a binary operator for the specified symbol, with the specified precedence and associativity NOTE: Associativity defaults to RightToLeft for legacy reasons.
| 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 |