plugify 1.2.8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
plg::detail::token_stream Class Reference

Public Member Functions

constexpr token_stream (vector< token > tokens) noexcept
 
constexpr void push (const token &token) noexcept
 
constexpr token advance () noexcept
 
constexpr token peek (std::size_t k=0) const noexcept
 
constexpr token previous () const noexcept
 
constexpr bool advance_if_match (token &token, token_type type) noexcept
 
constexpr bool advance_if_match (token_type type) noexcept
 
constexpr bool consume (token_type type) noexcept
 
constexpr bool check (token_type type) const noexcept
 

Detailed Description

Definition at line 273 of file version.hpp.

Constructor & Destructor Documentation

◆ token_stream()

constexpr plg::detail::token_stream::token_stream ( vector< token tokens)
inlineexplicitconstexprnoexcept

Definition at line 276 of file version.hpp.

Member Function Documentation

◆ advance()

constexpr token plg::detail::token_stream::advance ( )
inlineconstexprnoexcept

Definition at line 282 of file version.hpp.

◆ advance_if_match() [1/2]

constexpr bool plg::detail::token_stream::advance_if_match ( token token,
token_type  type 
)
inlineconstexprnoexcept

Definition at line 296 of file version.hpp.

◆ advance_if_match() [2/2]

constexpr bool plg::detail::token_stream::advance_if_match ( token_type  type)
inlineconstexprnoexcept

Definition at line 305 of file version.hpp.

◆ check()

constexpr bool plg::detail::token_stream::check ( token_type  type) const
inlineconstexprnoexcept

Definition at line 314 of file version.hpp.

◆ consume()

constexpr bool plg::detail::token_stream::consume ( token_type  type)
inlineconstexprnoexcept

Definition at line 310 of file version.hpp.

◆ peek()

constexpr token plg::detail::token_stream::peek ( std::size_t  k = 0) const
inlineconstexprnoexcept

Definition at line 288 of file version.hpp.

◆ previous()

constexpr token plg::detail::token_stream::previous ( ) const
inlineconstexprnoexcept

Definition at line 292 of file version.hpp.

◆ push()

constexpr void plg::detail::token_stream::push ( const token token)
inlineconstexprnoexcept

Definition at line 278 of file version.hpp.


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