UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TTokenDefinitions< CharType > Class Template Reference

#include <ExpressionParserTypes.h>

Public Member Functions

 TTokenDefinitions ()=default
 
CORE_API void IgnoreWhitespace ()
 
CORE_API void DefineToken (TFunction< TExpressionDefinition< CharType > > &&Definition)
 
CORE_API bool DoesIgnoreWhitespace ()
 
CORE_API TOptional< FExpressionErrorConsumeTokens (TExpressionTokenConsumer< CharType > &Consumer) const
 

Detailed Description

template<typename CharType>
class TTokenDefinitions< CharType >

A lexeme dictionary defining how to lex an expression.

Constructor & Destructor Documentation

◆ TTokenDefinitions()

template<typename CharType >
TTokenDefinitions< CharType >::TTokenDefinitions ( )
default

Member Function Documentation

◆ ConsumeTokens()

template<typename CharType >
TOptional< FExpressionError > TTokenDefinitions< CharType >::ConsumeTokens ( TExpressionTokenConsumer< CharType > &  Consumer) const

Consume a token for the specified consumer

◆ DefineToken()

template<typename CharType >
void TTokenDefinitions< CharType >::DefineToken ( TFunction< TExpressionDefinition< CharType > > &&  Definition)

Define a token by way of a function to be invoked to attempt to parse a token from a stream

◆ DoesIgnoreWhitespace()

template<typename CharType >
bool TTokenDefinitions< CharType >::DoesIgnoreWhitespace ( )

Check if the grammar ignores whitespace

◆ IgnoreWhitespace()

template<typename CharType >
void TTokenDefinitions< CharType >::IgnoreWhitespace ( )

Define the grammar to ignore whitespace between tokens, unless explicitly included in a token


The documentation for this class was generated from the following files: