From f7029726be3bbf119548a83696402512374d809d Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Mon, 15 Dec 2014 17:45:18 +0100 Subject: Adding a ForStatement solidity AST Node. - Adding ForStatement node - Implemented Parsing for ForStatement - A simple parsing test for the ForStatement - Work in progress --- AST.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'AST.cpp') diff --git a/AST.cpp b/AST.cpp index 5e344ead..c286c412 100644 --- a/AST.cpp +++ b/AST.cpp @@ -130,6 +130,13 @@ void WhileStatement::checkTypeRequirements() m_body->checkTypeRequirements(); } +void ForStatement::checkTypeRequirements() +{ + // LTODO + m_condExpression->expectType(BoolType()); + m_body->checkTypeRequirements(); +} + void Return::checkTypeRequirements() { if (!m_expression) -- cgit