FE 0.16.1
Fast, Effecient FrontEnds
Loading...
Searching...
No Matches
fe::Parser< Tok, Tag, K, S >::Expected Struct Reference

What Parser::expect was after - a Tag, or free-form markup. More...

#include <fe/parser.h>

Public Member Functions

 Expected (Tag tag)
 Expected (Cited what)
 Expected (Cite what)
template<size_t N>
 Expected (const char(&what)[N])

Public Attributes

Tag tag = Tag::Nil
 Tag::Nil, if the expectation was not a Tag.
Cited what
 Already rendered as markup - Parser::tag2str_ backticks a Tag.

Detailed Description

template<class Tok, class Tag, size_t K, class S>
struct fe::Parser< Tok, Tag, K, S >::Expected

What Parser::expect was after - a Tag, or free-form markup.

Both spellings are one parameter rather than two overloads, so that Parser::syntax_err stays a single signature: a declaration in S then replaces it instead of hiding a set of siblings alongside it.

Definition at line 249 of file parser.h.

Constructor & Destructor Documentation

◆ Expected() [1/4]

template<class Tok, class Tag, size_t K, class S>
fe::Parser< Tok, Tag, K, S >::Expected::Expected ( Tag tag)
inline

Definition at line 253 of file parser.h.

References tag, fe::Parser< Tok, Tag, K, S >::tag2str_(), and what.

Referenced by Expected().

◆ Expected() [2/4]

template<class Tok, class Tag, size_t K, class S>
fe::Parser< Tok, Tag, K, S >::Expected::Expected ( Cited what)
inline

Definition at line 256 of file parser.h.

References what.

◆ Expected() [3/4]

template<class Tok, class Tag, size_t K, class S>
fe::Parser< Tok, Tag, K, S >::Expected::Expected ( Cite what)
inline

Definition at line 258 of file parser.h.

References what.

◆ Expected() [4/4]

template<class Tok, class Tag, size_t K, class S>
template<size_t N>
fe::Parser< Tok, Tag, K, S >::Expected::Expected ( const char(&) what[N])
inline

Definition at line 261 of file parser.h.

References Expected(), and what.

Member Data Documentation

◆ tag

template<class Tok, class Tag, size_t K, class S>
Tag fe::Parser< Tok, Tag, K, S >::Expected::tag = Tag::Nil

Tag::Nil, if the expectation was not a Tag.

Definition at line 250 of file parser.h.

Referenced by Expected().

◆ what

template<class Tok, class Tag, size_t K, class S>
Cited fe::Parser< Tok, Tag, K, S >::Expected::what

Already rendered as markup - Parser::tag2str_ backticks a Tag.

Definition at line 251 of file parser.h.

Referenced by Expected(), Expected(), Expected(), and Expected().


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