hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
hobbes::action Class Reference

#include <lalr.H>

Collaboration diagram for hobbes::action:
Collaboration graph

Public Member Functions

bool isGoTo () const
 
nat goToState () const
 
bool isShift () const
 
nat shiftState () const
 
bool isReduce () const
 
terminalreduceSym () const
 
nat reduceRule () const
 
nat reduceSize () const
 
bool isAccept () const
 
bool operator== (const action &rhs) const
 
bool operator!= (const action &rhs) const
 
std::ostream & fmt (std::ostream &out) const
 

Static Public Member Functions

static action goTo (nat s)
 
static action shift (nat s)
 
static action reduce (terminal *x, nat r, nat n)
 
static action accept ()
 

Private Member Functions

 action ()
 

Private Attributes

uint8_t act
 
union {
   nat   s
 
   struct {
      terminal *   x
 
      nat   r
 
      nat   n
 
   } 
 
d
 

Constructor & Destructor Documentation

◆ action()

hobbes::action::action ( )
private

Member Function Documentation

◆ accept()

action hobbes::action::accept ( )
static

◆ fmt()

std::ostream & hobbes::action::fmt ( std::ostream &  out) const

◆ goTo()

action hobbes::action::goTo ( nat  s)
static

◆ goToState()

nat hobbes::action::goToState ( ) const

◆ isAccept()

bool hobbes::action::isAccept ( ) const

◆ isGoTo()

bool hobbes::action::isGoTo ( ) const

◆ isReduce()

bool hobbes::action::isReduce ( ) const

◆ isShift()

bool hobbes::action::isShift ( ) const

◆ operator!=()

bool hobbes::action::operator!= ( const action rhs) const

◆ operator==()

bool hobbes::action::operator== ( const action rhs) const

◆ reduce()

action hobbes::action::reduce ( terminal x,
nat  r,
nat  n 
)
static

◆ reduceRule()

nat hobbes::action::reduceRule ( ) const

◆ reduceSize()

nat hobbes::action::reduceSize ( ) const

◆ reduceSym()

terminal * hobbes::action::reduceSym ( ) const

◆ shift()

action hobbes::action::shift ( nat  s)
static

◆ shiftState()

nat hobbes::action::shiftState ( ) const

Member Data Documentation

◆ act

uint8_t hobbes::action::act
private

◆ d

union { ... } hobbes::action::d

◆ n

nat hobbes::action::n

◆ r

nat hobbes::action::r

◆ s

nat hobbes::action::s

◆ x

terminal* hobbes::action::x

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