diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-09 04:13:42 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-09 04:13:42 +0200 |
commit | ffe1e7bb96ffdedb8b3a3154b4fde65050c12bef (patch) | |
tree | d982c8de249d1eb5dc26625bfc780178ab1fcbcd /src | |
parent | 031fdb010e2e0565fa3c8e3d0b67e084233d2d9d (diff) | |
download | solar-ffe1e7bb96ffdedb8b3a3154b4fde65050c12bef.tar solar-ffe1e7bb96ffdedb8b3a3154b4fde65050c12bef.zip |
lex: disable number parsing
It is not used at the moment
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, |