#include <scanner.h>
Public Member Functions | |
Scanner () | |
void | SetSource (const char *_start) |
Token | ScanToken () |
Token | MakeToken (TokenType type) const |
Token | ErrorToken (const char *message) const |
bool | IsAtEnd () const |
char | Advance () |
bool | Match (char c) |
void | SkipWhitespace () |
Token | String () |
Token | Number () |
Token | Identifier () |
TokenType | IdentifierType () const |
Private Attributes | |
const char * | start |
const char * | current |
uscript::Scanner::Scanner | ( | ) |
Definition at line 6 of file scanner.cc.
char uscript::Scanner::Advance | ( | ) |
Definition at line 99 of file scanner.cc.
uscript::Token uscript::Scanner::ErrorToken | ( | const char * | message | ) | const |
Definition at line 175 of file scanner.cc.
uscript::Token uscript::Scanner::Identifier | ( | ) |
Definition at line 169 of file scanner.cc.
uscript::TokenType uscript::Scanner::IdentifierType | ( | ) | const |
Definition at line 140 of file scanner.cc.
bool uscript::Scanner::IsAtEnd | ( | ) | const |
Definition at line 104 of file scanner.cc.
uscript::Token uscript::Scanner::MakeToken | ( | uscript::TokenType | type | ) | const |
Definition at line 108 of file scanner.cc.
bool uscript::Scanner::Match | ( | char | c | ) |
Definition at line 91 of file scanner.cc.
uscript::Token uscript::Scanner::Number | ( | ) |
Definition at line 127 of file scanner.cc.
uscript::Token uscript::Scanner::ScanToken | ( | ) |
Definition at line 48 of file scanner.cc.
void uscript::Scanner::SetSource | ( | const char * | _start | ) |
Definition at line 11 of file scanner.cc.
void uscript::Scanner::SkipWhitespace | ( | ) |
Definition at line 16 of file scanner.cc.
uscript::Token uscript::Scanner::String | ( | ) |
Definition at line 116 of file scanner.cc.