Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FTokenDefinitions Class Reference

#include <ExpressionParserTypes.h>

+ Collaboration diagram for FTokenDefinitions:

Public Member Functions

 FTokenDefinitions ()
 
void IgnoreWhitespace ()
 
void DefineToken (TFunction< FExpressionDefinition > &&Definition)
 
bool DoesIgnoreWhitespace ()
 
TOptional< FExpressionErrorConsumeTokens (FExpressionTokenConsumer &Consumer) const
 

Private Member Functions

TOptional< FExpressionErrorConsumeToken (FExpressionTokenConsumer &Consumer) const
 

Private Attributes

bool bIgnoreWhitespace
 
TArray< TFunction< FExpressionDefinition > > Definitions
 

Detailed Description

A lexeme dictionary defining how to lex an expression.

Definition at line 458 of file ExpressionParserTypes.h.

Constructor & Destructor Documentation

◆ FTokenDefinitions()

FTokenDefinitions::FTokenDefinitions ( )
inline

Definition at line 461 of file ExpressionParserTypes.h.

Member Function Documentation

◆ ConsumeToken()

TOptional< FExpressionError > FTokenDefinitions::ConsumeToken ( FExpressionTokenConsumer & Consumer) const
private

◆ ConsumeTokens()

TOptional< FExpressionError > FTokenDefinitions::ConsumeTokens ( FExpressionTokenConsumer & Consumer) const

Consume a token for the specified consumer

◆ DefineToken()

void FTokenDefinitions::DefineToken ( TFunction< FExpressionDefinition > && Definition)

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

◆ DoesIgnoreWhitespace()

bool FTokenDefinitions::DoesIgnoreWhitespace ( )
inline

Check if the grammar ignores whitespace

Definition at line 472 of file ExpressionParserTypes.h.

◆ IgnoreWhitespace()

void FTokenDefinitions::IgnoreWhitespace ( )
inline

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

Definition at line 464 of file ExpressionParserTypes.h.

Member Data Documentation

◆ bIgnoreWhitespace

bool FTokenDefinitions::bIgnoreWhitespace
private

Definition at line 483 of file ExpressionParserTypes.h.

◆ Definitions

TArray<TFunction<FExpressionDefinition> > FTokenDefinitions::Definitions
private

Definition at line 484 of file ExpressionParserTypes.h.


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