Yume
Public Member Functions | Public Attributes | List of all members
yume::TokenState Struct Reference
Collaboration diagram for yume::TokenState:
Collaboration graph
[legend]

Public Member Functions

auto validate (bool val=true) -> bool
 
auto accept (bool ok) -> bool
 
auto accept () -> bool
 
auto accept (char chr) -> bool
 
auto accept_not (char chr) -> bool
 
auto accept (char_raw_fn fn) -> bool
 
auto accept_validate (auto x) -> bool
 

Public Attributes

bool valid
 
char c
 
size_t index
 
llvm::raw_string_ostream & stream
 

Detailed Description

Definition at line 20 of file token.cpp.

Member Function Documentation

◆ accept() [1/4]

auto yume::TokenState::accept ( ) -> bool
inline

Definition at line 37 of file token.cpp.

References c, and stream.

Referenced by accept_not(), and accept_validate().

◆ accept() [2/4]

auto yume::TokenState::accept ( bool  ok) -> bool
inline

Definition at line 31 of file token.cpp.

References c, and stream.

◆ accept() [3/4]

auto yume::TokenState::accept ( char  chr) -> bool
inline

Definition at line 42 of file token.cpp.

References accept(), and c.

Referenced by accept().

◆ accept() [4/4]

auto yume::TokenState::accept ( char_raw_fn  fn) -> bool
inline

Definition at line 44 of file token.cpp.

References accept(), and c.

Referenced by accept().

◆ accept_not()

auto yume::TokenState::accept_not ( char  chr) -> bool
inline

Definition at line 43 of file token.cpp.

References accept(), and c.

◆ accept_validate()

auto yume::TokenState::accept_validate ( auto  x) -> bool
inline

Definition at line 46 of file token.cpp.

References accept(), and validate().

◆ validate()

auto yume::TokenState::validate ( bool  val = true) -> bool
inline

Definition at line 26 of file token.cpp.

References valid.

Referenced by accept_validate().

Member Data Documentation

◆ c

char yume::TokenState::c

Definition at line 22 of file token.cpp.

Referenced by accept(), and accept_not().

◆ index

size_t yume::TokenState::index

Definition at line 23 of file token.cpp.

◆ stream

llvm::raw_string_ostream& yume::TokenState::stream

Definition at line 24 of file token.cpp.

Referenced by accept().

◆ valid

bool yume::TokenState::valid

Definition at line 21 of file token.cpp.

Referenced by validate().


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