146 const char peek(int32_t rpos = 0)
const;
Token tokenize_character_lit()
Method for tokenizing character literal.
const char get_escape_sequence()
Method for getting escape-sequence in string or character literal.
Token tokenize_string_lit()
Method for tokenizing string literal.
Token tokenize_number_lit()
Method for tokenizing number literal.
const char advance()
Method for skipping current character from source code and returns it.
void skip_comments()
Method for skipping comments.
const char peek(int32_t rpos=0) const
Method for getting character from source code by lexer pos and passed offset.
Token tokenize_op()
Method for tokenizing operator.
Lexer(std::string src, std::string fn, bool id)
Token tokenize_id()
Method for tokenizing identifier token.
std::map< std::string, TokenType > keywords
std::vector< Token > tokenize()
Method for tokenizing source code.
Header file for defining the token.