Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
Loading...
Searching...
No Matches
elementa::parsing::ErrorInfo::Info Struct Reference

Info data about the error, depending on the kind. More...

Description

Info data about the error, depending on the kind.

See the note in StepInfo about why this is not a union but a struct.

Definition at line 285 of file parsing.h.

#include "parsing.h"

Collaboration diagram for elementa::parsing::ErrorInfo::Info:

Public Attributes

UnexpectedTerminal unexppair
 kUnexpTerminal: the expected and found terminals, respectively. More...
 
CFGrammar::LL1TableIndex emptytableindex
 kEmptyTable: a table index is not filled with anything. More...
 

Public Member Functions

 Info (const CFGrammar::LL1TableIndex &ti)
 Constructor from table index. More...
 
 Info (const UnexpectedTerminal &ut)
 Constructor from unexpected pair. More...
 
 Info (const Info &oth)=default
 
 Info (Info &&oth)=default
 
Infooperator= (const Info &oth)=default
 
Infooperator= (Info &&oth)=default
 

Constructor & Destructor Documentation

◆ Info() [1/2]

elementa::parsing::ErrorInfo::Info::Info ( const CFGrammar::LL1TableIndex ti)
inline

Constructor from table index.

Definition at line 294 of file parsing.h.

◆ Info() [2/2]

elementa::parsing::ErrorInfo::Info::Info ( const UnexpectedTerminal ut)
inline

Constructor from unexpected pair.

Definition at line 298 of file parsing.h.

Member Data Documentation

◆ unexppair

UnexpectedTerminal elementa::parsing::ErrorInfo::Info::unexppair

kUnexpTerminal: the expected and found terminals, respectively.

Definition at line 288 of file parsing.h.

Referenced by elementa::parsing::ErrorInfo::operator==().

◆ emptytableindex

CFGrammar::LL1TableIndex elementa::parsing::ErrorInfo::Info::emptytableindex

kEmptyTable: a table index is not filled with anything.

Definition at line 291 of file parsing.h.

Referenced by elementa::parsing::ErrorInfo::operator==().


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