-
Notifications
You must be signed in to change notification settings - Fork 0
/
Token.hpp
47 lines (30 loc) · 809 Bytes
/
Token.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// Template by Ali A. Kooshesh on 1/27/21.
// Additional Code by Garret Mook on 02/06/21.
#ifndef PROJECT1PHASE1_TOKEN_HPP
#define PROJECT1PHASE1_TOKEN_HPP
#include <string>
class Token {
public:
Token(int, int);
bool &isOpenTag();
bool &isCloseTag();
bool &isCloseAngleBracket();
bool &endOfFile();
bool &isCloseStandAloneTag();
std::string tagName();
//Self Added
void makeOpenTag(std::string);
void makeCloseTag(std::string);
//Self Added
std::string makeOpenTag();
bool &isSlash();
void print();
bool &eol();
private:
bool _isOpenTag, _isCloseTag, _isCloseAngleBracket,
_eof, _isCloseStandAloneTag, _eol, _isSlash;
std::string _tagName;
int _lineNumber, _charPos;
};
#endif //PROJECT1PHASE1_TOKEN_HPP