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:19:44 +0800 |
commit | 4822154f61c60482fcee74cf0f9b4eb16e11aa4e (patch) | |
tree | 1ed8562076d78cdfb6c7ae9e2ee6b3bdf6be09df /ExpressionCompiler.cpp | |
parent | f7f2861f5fd3b629026ea7ad31419a86784549e8 (diff) | |
download | dexon-solidity-4822154f61c60482fcee74cf0f9b4eb16e11aa4e.tar dexon-solidity-4822154f61c60482fcee74cf0f9b4eb16e11aa4e.tar.gz dexon-solidity-4822154f61c60482fcee74cf0f9b4eb16e11aa4e.tar.bz2 dexon-solidity-4822154f61c60482fcee74cf0f9b4eb16e11aa4e.tar.lz dexon-solidity-4822154f61c60482fcee74cf0f9b4eb16e11aa4e.tar.xz dexon-solidity-4822154f61c60482fcee74cf0f9b4eb16e11aa4e.tar.zst dexon-solidity-4822154f61c60482fcee74cf0f9b4eb16e11aa4e.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 619b0673..38d9aac8 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -250,6 +250,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()); |