diff options
author | Gav Wood <i@gavwood.com> | 2015-03-05 00:35:23 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-03-06 19:46:23 +0800 |
commit | 9aea119e54fbf2afa6d999e5419bb9db93eed2ce (patch) | |
tree | 6f4337f34e6a7e7fe0cf8572ac4d8e6c8ff5274f /ExpressionCompiler.cpp | |
parent | 34e8de749aeecbca5f5dae817aa67f42907e9bf7 (diff) | |
download | dexon-solidity-9aea119e54fbf2afa6d999e5419bb9db93eed2ce.tar.gz dexon-solidity-9aea119e54fbf2afa6d999e5419bb9db93eed2ce.tar.zst dexon-solidity-9aea119e54fbf2afa6d999e5419bb9db93eed2ce.zip |
Add date/time language to solidity.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index 793bd55e..adaaff23 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -258,6 +258,9 @@ bool ExpressionCompiler::visit(UnaryOperation const& _unaryOperation) case Token::BitNot: // ~ m_context << eth::Instruction::NOT; break; + case Token::After: // after + m_context << eth::Instruction::TIMESTAMP << eth::Instruction::ADD; + break; case Token::Delete: // delete solAssert(!!m_currentLValue, "LValue not retrieved."); m_currentLValue->setToZero(_unaryOperation.getLocation()); |