summaryrefslogtreecommitdiff
path: root/src/token.cpp
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-04-23 11:47:01 -0600
committerMike Buland <mike@xagasoft.com>2013-04-23 11:47:01 -0600
commit04f56c12e82ea5228b2b65e68c46ed7f4563182b (patch)
tree89a8db02dae8aaafd70f91bb15f21209cd1fa0ed /src/token.cpp
parent9f138260dafeb5a1b541fff8dd577422439feb0b (diff)
downloadclic-04f56c12e82ea5228b2b65e68c46ed7f4563182b.tar.gz
clic-04f56c12e82ea5228b2b65e68c46ed7f4563182b.tar.bz2
clic-04f56c12e82ea5228b2b65e68c46ed7f4563182b.tar.xz
clic-04f56c12e82ea5228b2b65e68c46ed7f4563182b.zip
Variables work.
Diffstat (limited to 'src/token.cpp')
-rw-r--r--src/token.cpp5
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