diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-28 21:33:52 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-16 17:56:21 +0800 |
commit | 47925bc14e80d0c33c491dabc3c3dd3ea787b63c (patch) | |
tree | 10f0dc08bf0a78a02a921d7fa69449c94d6676a3 /libjulia | |
parent | 54e97d1c34d7c291673e695a991db8df627c503e (diff) | |
download | dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar.gz dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar.bz2 dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar.lz dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar.xz dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar.zst dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.zip |
Parse for statement in assembly parser / printer
Diffstat (limited to 'libjulia')
-rw-r--r-- | libjulia/backends/evm/EVMCodeTransform.cpp | 5 | ||||
-rw-r--r-- | libjulia/backends/evm/EVMCodeTransform.h | 16 |
2 files changed, 6 insertions, 15 deletions
diff --git a/libjulia/backends/evm/EVMCodeTransform.cpp b/libjulia/backends/evm/EVMCodeTransform.cpp index 7c14eb8b..00d0bde5 100644 --- a/libjulia/backends/evm/EVMCodeTransform.cpp +++ b/libjulia/backends/evm/EVMCodeTransform.cpp @@ -53,6 +53,11 @@ void CodeTransform::run(Block const& _block) } +void CodeTransform::operator()(ForLoop const&) +{ + solAssert(false, "For loop not removed during desugaring phase."); +} + void CodeTransform::operator()(VariableDeclaration const& _varDecl) { solAssert(m_scope, ""); diff --git a/libjulia/backends/evm/EVMCodeTransform.h b/libjulia/backends/evm/EVMCodeTransform.h index 202f5051..9814f0f5 100644 --- a/libjulia/backends/evm/EVMCodeTransform.h +++ b/libjulia/backends/evm/EVMCodeTransform.h @@ -32,21 +32,6 @@ namespace solidity class ErrorReporter; namespace assembly { -struct Literal; -struct Block; -struct Switch; -struct Label; -struct FunctionalInstruction; -struct Assignment; -struct VariableDeclaration; -struct Instruction; -struct Identifier; -struct StackAssignment; -struct FunctionDefinition; -struct FunctionCall; - -using Statement = boost::variant<Instruction, Literal, Label, StackAssignment, Identifier, Assignment, FunctionCall, FunctionalInstruction, VariableDeclaration, FunctionDefinition, Switch, Block>; - struct AsmAnalysisInfo; } } @@ -115,6 +100,7 @@ public: void operator()(solidity::assembly::VariableDeclaration const& _varDecl); void operator()(solidity::assembly::Switch const& _switch); void operator()(solidity::assembly::FunctionDefinition const&); + void operator()(solidity::assembly::ForLoop const&); void operator()(solidity::assembly::Block const& _block); private: |