aboutsummaryrefslogtreecommitdiff
path: root/include/token.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/token.h')
-rw-r--r--include/token.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/token.h b/include/token.h
index 165f100..9041a2e 100644
--- a/include/token.h
+++ b/include/token.h
@@ -55,15 +55,14 @@ enum TokenType {
class Token
{
private:
- TokenType type;
- char *lexeme;
+ TokenType m_type;
+ char *m_lexeme;
// literal
- unsigned int line;
- char *string;
+ unsigned int m_line;
+ char *m_string;
public:
void init(TokenType type, char *lexeme, unsigned int line);
-
char *to_string(void);
void clean(void);
};