JUCE  v5.2.0-514-g49784a029
JUCE API
juce::littlefoot::Compiler::TokenIterator Struct Reference
Inheritance diagram for juce::littlefoot::Compiler::TokenIterator:
Collaboration diagram for juce::littlefoot::Compiler::TokenIterator:

Public Member Functions

 TokenIterator (const String &code)
 
void match (TokenType expected)
 
template<typename... Args>
bool matchesAny (TokenType t1, Args... others) const noexcept
 
bool matchesAny (TokenType t1) const noexcept
 
bool matchIf (TokenType expected)
 
TokenType skip ()
 
void throwErrorExpecting (const String &expected)
 

Public Attributes

TokenType currentType
 
var currentValue
 
CodeLocation location
 

Private Member Functions

TokenType matchNextToken ()
 
bool matchToken (TokenType name, const size_t len) noexcept
 
bool parseDecimalLiteral ()
 
bool parseFloatLiteral ()
 
bool parseHexLiteral ()
 
bool parseOctalLiteral ()
 
bool parseStringLiteral (juce_wchar quoteType)
 
void skipWhitespaceAndComments ()
 

Static Private Member Functions

static bool isIdentifierBody (juce_wchar c) noexcept
 
static bool isIdentifierStart (juce_wchar c) noexcept
 

Private Attributes

String::CharPointerType p
 

Constructor & Destructor Documentation

◆ TokenIterator()

juce::littlefoot::Compiler::TokenIterator::TokenIterator ( const String code)
inline

Member Function Documentation

◆ isIdentifierBody()

static bool juce::littlefoot::Compiler::TokenIterator::isIdentifierBody ( juce_wchar  c)
inlinestaticprivatenoexcept

◆ isIdentifierStart()

static bool juce::littlefoot::Compiler::TokenIterator::isIdentifierStart ( juce_wchar  c)
inlinestaticprivatenoexcept

◆ match()

void juce::littlefoot::Compiler::TokenIterator::match ( TokenType  expected)
inline

◆ matchesAny() [1/2]

template<typename... Args>
bool juce::littlefoot::Compiler::TokenIterator::matchesAny ( TokenType  t1,
Args...  others 
) const
inlinenoexcept

◆ matchesAny() [2/2]

bool juce::littlefoot::Compiler::TokenIterator::matchesAny ( TokenType  t1) const
inlinenoexcept

◆ matchIf()

bool juce::littlefoot::Compiler::TokenIterator::matchIf ( TokenType  expected)
inline

◆ matchNextToken()

TokenType juce::littlefoot::Compiler::TokenIterator::matchNextToken ( )
inlineprivate

◆ matchToken()

bool juce::littlefoot::Compiler::TokenIterator::matchToken ( TokenType  name,
const size_t  len 
)
inlineprivatenoexcept

◆ parseDecimalLiteral()

bool juce::littlefoot::Compiler::TokenIterator::parseDecimalLiteral ( )
inlineprivate

◆ parseFloatLiteral()

bool juce::littlefoot::Compiler::TokenIterator::parseFloatLiteral ( )
inlineprivate

◆ parseHexLiteral()

bool juce::littlefoot::Compiler::TokenIterator::parseHexLiteral ( )
inlineprivate

◆ parseOctalLiteral()

bool juce::littlefoot::Compiler::TokenIterator::parseOctalLiteral ( )
inlineprivate

◆ parseStringLiteral()

bool juce::littlefoot::Compiler::TokenIterator::parseStringLiteral ( juce_wchar  quoteType)
inlineprivate

◆ skip()

TokenType juce::littlefoot::Compiler::TokenIterator::skip ( )
inline

◆ skipWhitespaceAndComments()

void juce::littlefoot::Compiler::TokenIterator::skipWhitespaceAndComments ( )
inlineprivate

◆ throwErrorExpecting()

void juce::littlefoot::Compiler::TokenIterator::throwErrorExpecting ( const String expected)
inline

Member Data Documentation

◆ currentType

TokenType juce::littlefoot::Compiler::TokenIterator::currentType

◆ currentValue

var juce::littlefoot::Compiler::TokenIterator::currentValue

◆ location

CodeLocation juce::littlefoot::Compiler::TokenIterator::location

◆ p

String::CharPointerType juce::littlefoot::Compiler::TokenIterator::p
private

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