#include "tokenstream.h"
#include "../math/emath.h"
namespace embree
{
const std::string TokenStream::alpha = …;
const std::string TokenStream::ALPHA = …;
const std::string TokenStream::numbers = …;
const std::string TokenStream::separators = …;
const std::string TokenStream::stringChars = …;
static void createCharMap(bool map[256], const std::string& chrs) { … }
TokenStream::TokenStream(const Ref<Stream<int> >& cin,
const std::string& alpha,
const std::string& seps,
const std::vector<std::string>& symbols)
: … { … }
bool TokenStream::decDigits(std::string& str_o)
{ … }
bool TokenStream::decDigits1(std::string& str_o)
{ … }
bool TokenStream::trySymbol(const std::string& symbol)
{ … }
bool TokenStream::trySymbols(Token& token, const ParseLocation& loc)
{ … }
bool TokenStream::tryFloat(Token& token, const ParseLocation& loc)
{ … }
bool TokenStream::tryInt(Token& token, const ParseLocation& loc) { … }
bool TokenStream::tryString(Token& token, const ParseLocation& loc)
{ … }
bool TokenStream::tryIdentifier(Token& token, const ParseLocation& loc)
{ … }
void TokenStream::skipSeparators()
{ … }
Token TokenStream::next()
{ … }
}