diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lex.cpp | 10 | ||||
-rw-r--r-- | src/lex.hpp | 2 | ||||
-rw-r--r-- | src/parser.hpp | 1 |
3 files changed, 6 insertions, 7 deletions
diff --git a/src/lex.cpp b/src/lex.cpp index c97e03d..38d138c 100644 --- a/src/lex.cpp +++ b/src/lex.cpp @@ -191,7 +191,7 @@ int lex_t::lex_string(parser_value_t *value) { consume(true); return TOK_STRING; - }*/ +} int lex_t::lex_number(parser_value_t *value) { if (needspace) @@ -221,7 +221,7 @@ int lex_t::lex_number(parser_value_t *value) { consume(true); return TOK_UINT; -} +}*/ int lex_t::lex_keyword(parser_value_t *value) { if (needspace) @@ -438,11 +438,11 @@ int lex_t::lex(parser_value_t *value) { case '{': return lex_block(value); - //case '"': + //case '"': //return lex_string(value); - case '0' ... '9': - return lex_number(value); + //case '0' ... '9': + //return lex_number(value); case 'a' ... 'z': case 'A' ... 'Z': diff --git a/src/lex.hpp b/src/lex.hpp index dcf8b16..8f7e038 100644 --- a/src/lex.hpp +++ b/src/lex.hpp @@ -69,7 +69,7 @@ private: //int unterminated_string(parser_value_t *value); //int lex_string(parser_value_t *value); - int lex_number(parser_value_t *value); + //int lex_number(parser_value_t *value); int lex_keyword(parser_value_t *value); int lex_block(parser_value_t *value); int lex_symbol(parser_value_t *value); diff --git a/src/parser.hpp b/src/parser.hpp index 61bfab4..c5dd139 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -39,7 +39,6 @@ enum parser_token_t { TOK_SYMBOL_LC, TOK_BLOCK, TOK_CHAR, - TOK_UINT, TOK_TYPE, TOK_SOURCE, TOK_HEADER, |