PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::TokenSource Class Referenceabstract

#include <Puma/TokenSource.h>

+ Inheritance diagram for Puma::TokenSource:

Description

Token source interface.

To be implemented by all sources providing lexical tokens.

Public Member Functions

virtual ~TokenSource ()
 Destructor.
 
virtual Tokennext ()=0
 Get the next token.
 

Constructor & Destructor Documentation

◆ ~TokenSource()

virtual Puma::TokenSource::~TokenSource ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ next()

virtual Token * Puma::TokenSource::next ( )
pure virtual

Get the next token.

Returns
The next token from the source, or NULL if no more tokens.

Implemented in Puma::TokenStream, Puma::UnitTokenSrc, Puma::PreprocessorParser, and Puma::InstantiationTokenSource.