PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::Syntax::State Class Reference

#include <Puma/Syntax.h>

+ Inheritance diagram for Puma::Syntax::State:

Description

Parser state, the current position in the token stream.

Public Member Functions

 State ()
 Constructor.
 
 State (int)
 Constructor.
 
 State (const TokenProvider::State &s)
 Copy constructor.
 
- Public Member Functions inherited from Puma::BCList< Item, BUCKET_SIZE >::Iterator
 Iterator ()
 Construct an empty iterator.
 
 operator bool () const
 Check whether this iterator is in a valid state.
 
bool operator== (const Iterator &other) const
 Compare two iterators.
 
bool operator!= (const Iterator &other) const
 Compare two iterators.
 
Iteratoroperator++ ()
 Unary increment operator.
 
Iterator operator++ (int)
 Binary increment operator.
 
Iteratoroperator-- ()
 Unary decrement operator.
 
Iterator operator-- (int)
 Binary decrement operator.
 
Item & operator* () const
 Get the list item the iterator currently points to.
 
Item * operator-> () const
 Get a pointer to the list item the iterator currently points to.
 

Constructor & Destructor Documentation

◆ State() [1/3]

Puma::Syntax::State::State ( )
inline

Constructor.

◆ State() [2/3]

Puma::Syntax::State::State ( int )
inline

Constructor.

◆ State() [3/3]

Puma::Syntax::State::State ( const TokenProvider::State & s)
inline

Copy constructor.

Parameters
sThe parser state to copy.