FExpressionGrammar

A lexical gammer defining how to parse an expression.

Windows
MacOS
Linux

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

Name Description

Public function

void

 

DefineBinaryOperator

(
    int32 InPrecedence,
    EAssociativity InAssociativity,
    bool bCanShortCircuit
)

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

Public function

void

 

DefineGrouping()

Define a grouping operator from two expression node types

Public function

void

 

DefinePostUnaryOperator()

Define a post-unary operator for the specified symbol

Public function

void

 

DefinePreUnaryOperator()

Define a pre-unary operator for the specified symbol

Public function Const

const FOpPar...

 

GetBinaryOperatorDefParameters

(
    const FGuid& TypeId
)

Get the binary operator precedence and associativity parameters, for the specified symbol, if any

Public function Const

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

Public function Const

bool

 

HasPostUnaryOperator

(
    const FGuid& TypeId
)

Check if this grammar defines a post-unary operator for the specified symbol

Public function Const

bool

 

HasPreUnaryOperator

(
    const FGuid& TypeId
)

Check if this grammar defines a pre-unary operator for the specified symbol

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