]> git.localhorst.tv Git - l2e.git/commitdiff
added missing parentheses tokens
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 26 Aug 2012 15:04:21 +0000 (17:04 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 26 Aug 2012 15:04:21 +0000 (17:04 +0200)
src/loader/Tokenizer.cpp
src/loader/Tokenizer.h

index 2b87d9c5be43077c186418d75df1cbf041ae93d4..828f6ed131afe44118e8b86aead5b2c2235284ea 100644 (file)
@@ -46,6 +46,8 @@ Tokenizer::Token Tokenizer::ReadToken() {
                case Token::COMMA:
                case Token::BRACKET_OPEN:
                case Token::BRACKET_CLOSE:
+               case Token::PARENTHESIS_OPEN:
+               case Token::PARENTHESIS_CLOSE:
                        return Token ((Token::Type) c);
                case '+': case '-':
                case '0': case '1': case '2': case '3': case '4':
index f2ab4aaaadd2fb5883741f8641f24917e0cff5ab..80a31693beb7e21abb19d03340964b7e08a67314 100644 (file)
@@ -37,6 +37,8 @@ public:
                        COMMA = ',',
                        BRACKET_OPEN = '[',
                        BRACKET_CLOSE = ']',
+                       PARENTHESIS_OPEN = '(',
+                       PARENTHESIS_CLOSE = ')',
                        NUMBER,
                        STRING,
                        KEYWORD_EXPORT,
@@ -99,6 +101,10 @@ inline const char *TokenTypeToString(Tokenizer::Token::Type t) {
                        return "BRACKET_OPEN";
                case Tokenizer::Token::BRACKET_CLOSE:
                        return "BRACKET_CLOSE";
+               case Tokenizer::Token::PARENTHESIS_OPEN:
+                       return "PARENTHESIS_OPEN";
+               case Tokenizer::Token::PARENTHESIS_CLOSE:
+                       return "PARENTHESIS_CLOSE";
                case Tokenizer::Token::NUMBER:
                        return "NUMBER";
                case Tokenizer::Token::STRING: