diff options
Diffstat (limited to '')
-rw-r--r-- | src/token.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/token.cpp b/src/token.cpp index d7fbe88..019e54d 100644 --- a/src/token.cpp +++ b/src/token.cpp | |||
@@ -38,7 +38,7 @@ Token::~Token() | |||
38 | delete nVal; | 38 | delete nVal; |
39 | break; | 39 | break; |
40 | 40 | ||
41 | case tString: | 41 | case tVariable: |
42 | case tCommand: | 42 | case tCommand: |
43 | delete sVal; | 43 | delete sVal; |
44 | break; | 44 | break; |
@@ -53,7 +53,7 @@ Bu::Formatter &operator<<( Bu::Formatter &f, Token::Type eType ) | |||
53 | switch( eType ) | 53 | switch( eType ) |
54 | { | 54 | { |
55 | case Token::tNumber: return f << "num"; | 55 | case Token::tNumber: return f << "num"; |
56 | case Token::tString: return f << "str"; | 56 | case Token::tVariable: return f << "var"; |
57 | case Token::tCommand: return f << "cmd"; | 57 | case Token::tCommand: return f << "cmd"; |
58 | case Token::tPlus: return f << "+"; | 58 | case Token::tPlus: return f << "+"; |
59 | case Token::tMinus: return f << "-"; | 59 | case Token::tMinus: return f << "-"; |
@@ -61,6 +61,7 @@ Bu::Formatter &operator<<( Bu::Formatter &f, Token::Type eType ) | |||
61 | case Token::tMultiply: return f << "*"; | 61 | case Token::tMultiply: return f << "*"; |
62 | case Token::tOpenParen: return f << "("; | 62 | case Token::tOpenParen: return f << "("; |
63 | case Token::tCloseParen: return f << ")"; | 63 | case Token::tCloseParen: return f << ")"; |
64 | case Token::tEquals: return f << "="; | ||
64 | case Token::tEndOfLine: return f << "eol"; | 65 | case Token::tEndOfLine: return f << "eol"; |
65 | case Token::tEndOfInput: return f << "eoi"; | 66 | case Token::tEndOfInput: return f << "eoi"; |
66 | 67 | ||