diff options
author | RJ Catalano <rcatalano@macsales.com> | 2016-02-19 00:34:07 +0800 |
---|---|---|
committer | RJ Catalano <rcatalano@macsales.com> | 2016-02-19 01:23:00 +0800 |
commit | 9b67969fd648fd5477e9b5d90870fddbd187e4d6 (patch) | |
tree | f826c1b99fec02e0cde7770f6cd121e99e56b595 /libsolidity/parsing/Token.h | |
parent | d2c0712f36ce4a9148756458533a91bca1cfe44b (diff) | |
download | dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar.gz dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar.bz2 dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar.lz dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar.xz dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar.zst dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.zip |
further optimization, splitting function into pieces
generating strings on the fly, changed name, and added two tests
Diffstat (limited to 'libsolidity/parsing/Token.h')
-rw-r--r-- | libsolidity/parsing/Token.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h index 3de204e0..a64eded5 100644 --- a/libsolidity/parsing/Token.h +++ b/libsolidity/parsing/Token.h @@ -307,6 +307,8 @@ private: // if out_of_range error is thrown, they returns 0s, therefore securing // the variable's identity as an identifier. static unsigned extractM(std::string const& _literal); + // @returns the keyword with name @a _name or Token::Identifier of no such keyword exists. + static Token::Value keywordByName(std::string const& _name); static char const* const m_name[NUM_TOKENS]; static char const* const m_string[NUM_TOKENS]; static int8_t const m_precedence[NUM_TOKENS]; |