Loading...
Searching...
No Matches
by::stelaTokenDispatcher Class Reference

Token dispatcher for managing token queue during parsing. More...

#include <stelaTokenDispatcher.hpp>

Public Member Functions

void add (nint newToken)
 
void addFront (nint newToken)
 
nbool pop (nint &output)
 Removes a token from the front of the queue.
 
ncnt len () const
 
void rel ()
 

Detailed Description

Token dispatcher for managing token queue during parsing.

Manages a queue of tokens for lookahead and token buffering during the parsing process. Supports adding tokens to front and back.

Member Function Documentation

◆ pop()

nbool by::stelaTokenDispatcher::pop ( nint & output)

Removes a token from the front of the queue.

Parameters
outputReference to store the popped token ID.
Returns
true if a token was successfully popped, false if the queue was empty.

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