#include <lexer.h>
Public Methods | |
Lexer (File in, File out, std::string current_dir="") | |
void | lex () |
lexes the file. More... | |
Private Methods | |
std::string | read_line () |
reads the line. More... | |
std::string::size_type | find_tag (std::string line, std::string::size_type startpos) |
returns the startpos of the next tag. More... | |
std::string::size_type | find_end_of_tag (std::string line, std::string::size_type startpos) |
returns the endpos of the next tag. More... | |
std::string | get_tag (std::string line, std::string::size_type startpos) |
extracts all tags from the line. More... | |
Private Attributes | |
File | in |
File | out |
bool | eof_reached |
int | line_number |
int | cursor_pos |
std::string | current_dir |
lexes a html file
|
|
|
returns the endpos of the next tag.
|
|
returns the startpos of the next tag.
|
|
extracts all tags from the line.
|
|
lexes the file.
|
|
reads the line.
|
|
|
|
|
|
|
|
|
|
|
|
|