KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LIBEVAL::TOKENIZER Class Reference

#include <libeval_compiler.h>

Public Member Functions

void Restart (const wxString &aStr)
 
void Clear ()
 
int GetChar () const
 
bool Done () const
 
void NextChar (int aAdvance=1)
 
size_t GetPos () const
 
wxString GetString ()
 
wxString GetChars (const std::function< bool(wxUniChar)> &cond) const
 
bool MatchAhead (const wxString &match, const std::function< bool(wxUniChar)> &stopCond) const
 

Private Attributes

wxString m_str
 
size_t m_pos = 0
 

Detailed Description

Definition at line 439 of file libeval_compiler.h.

Member Function Documentation

◆ Clear()

void LIBEVAL::TOKENIZER::Clear ( )
inline

Definition at line 448 of file libeval_compiler.h.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::Clear().

◆ Done()

bool LIBEVAL::TOKENIZER::Done ( ) const
inline

Definition at line 462 of file libeval_compiler.h.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexDefault().

◆ GetChar()

int LIBEVAL::TOKENIZER::GetChar ( ) const
inline

Definition at line 454 of file libeval_compiler.h.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexDefault().

◆ GetChars()

wxString LIBEVAL::TOKENIZER::GetChars ( const std::function< bool(wxUniChar)> &  cond) const

Definition at line 222 of file libeval_compiler.cpp.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexDefault().

◆ GetPos()

size_t LIBEVAL::TOKENIZER::GetPos ( ) const
inline

Definition at line 472 of file libeval_compiler.h.

References m_pos.

Referenced by LIBEVAL::COMPILER::Compile(), and LIBEVAL::COMPILER::lexDefault().

◆ GetString()

wxString LIBEVAL::TOKENIZER::GetString ( )

Definition at line 204 of file libeval_compiler.cpp.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexString().

◆ MatchAhead()

bool LIBEVAL::TOKENIZER::MatchAhead ( const wxString &  match,
const std::function< bool(wxUniChar)> &  stopCond 
) const

Definition at line 236 of file libeval_compiler.cpp.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::lexDefault(), and LIBEVAL::COMPILER::resolveUnits().

◆ NextChar()

void LIBEVAL::TOKENIZER::NextChar ( int  aAdvance = 1)
inline

Definition at line 467 of file libeval_compiler.h.

References m_pos.

Referenced by LIBEVAL::COMPILER::lexDefault(), and LIBEVAL::COMPILER::resolveUnits().

◆ Restart()

void LIBEVAL::TOKENIZER::Restart ( const wxString &  aStr)
inline

Definition at line 442 of file libeval_compiler.h.

References m_pos, and m_str.

Referenced by LIBEVAL::COMPILER::newString().

Member Data Documentation

◆ m_pos

size_t LIBEVAL::TOKENIZER::m_pos = 0
private

◆ m_str

wxString LIBEVAL::TOKENIZER::m_str
private

Definition at line 485 of file libeval_compiler.h.

Referenced by Clear(), Done(), GetChar(), GetChars(), GetString(), MatchAhead(), and Restart().


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