Blender V5.3
blender::dna::TokenStream Class Reference

Public Member Functions

void append (Token &&token)
bool at_end () const
TokenKind kind (int64_t offset=0) const
const Token & peek (int64_t offset=0) const
const Token & consume ()
void advance ()
bool consume (TokenKind k)
bool consume_keyword (StringRef kw)
bool consume_expression (StringRef expr)

Detailed Description

Definition at line 89 of file dna_parse.cc.

Member Function Documentation

◆ advance()

◆ append()

void blender::dna::TokenStream::append ( Token && token)
inline

◆ at_end()

◆ consume() [1/2]

◆ consume() [2/2]

bool blender::dna::TokenStream::consume ( TokenKind k)
inline

Definition at line 124 of file dna_parse.cc.

References kind().

◆ consume_expression()

◆ consume_keyword()

bool blender::dna::TokenStream::consume_keyword ( StringRef kw)
inline

◆ kind()

◆ peek()

const Token & blender::dna::TokenStream::peek ( int64_t offset = 0) const
inline

Definition at line 109 of file dna_parse.cc.

Referenced by consume_expression(), and consume_keyword().


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