buffalo
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages Concepts
bf::LRState< G > Struct Template Reference

#include <buffalo.h>

Public Member Functions

std::vector< LRItem< G > > GenerateClosure () const
 
std::map< Symbol< G >, LRState< G > > GenerateTransitions () const
 
bool operator== (LRState const &other) const
 
 LRState (NonTerminal< G > const *start)
 
 LRState ()=default
 

Public Attributes

std::vector< LRItem< G > > kernel_items
 

Detailed Description

template<IGrammar G>
struct bf::LRState< G >

LR State

Template Parameters
G

Definition at line 710 of file buffalo.h.

Constructor & Destructor Documentation

◆ LRState() [1/2]

template<IGrammar G>
bf::LRState< G >::LRState ( NonTerminal< G > const start)
inline

Definition at line 774 of file buffalo.h.

◆ LRState() [2/2]

template<IGrammar G>
bf::LRState< G >::LRState ( )
default

Member Function Documentation

◆ GenerateClosure()

template<IGrammar G>
std::vector< LRItem< G > > bf::LRState< G >::GenerateClosure ( ) const
inline

Definition at line 714 of file buffalo.h.

◆ GenerateTransitions()

template<IGrammar G>
std::map< Symbol< G >, LRState< G > > bf::LRState< G >::GenerateTransitions ( ) const
inline

Definition at line 741 of file buffalo.h.

◆ operator==()

template<IGrammar G>
bool bf::LRState< G >::operator== ( LRState< G > const other) const
inline

This is very slow and needs to be remedied.

Parameters
other
Returns

Definition at line 762 of file buffalo.h.

Member Data Documentation

◆ kernel_items

template<IGrammar G>
std::vector<LRItem<G> > bf::LRState< G >::kernel_items

Definition at line 712 of file buffalo.h.


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