2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2014 - Scilab Enterprises - Calixte DENIZET
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 #ifndef __XBLOCK_HXX__
14 #define __XBLOCK_HXX__
21 class XBlock : public Block
26 XBlock(const unsigned int id, Block * parent, ast::Exp * exp) : Block(id, parent, exp) { }
28 void finalize() override;
31 class XBlockHead : public Block
33 std::vector<Block *> testBlocks;
37 XBlockHead(const unsigned int id, Block * parent, ast::Exp * exp) : Block(id, parent, exp) { }
41 std::for_each(testBlocks.begin(), testBlocks.end(), [](Block * b)
47 Block * addBlock(const unsigned int id, BlockKind kind, ast::Exp * exp) override;
48 void finalize() override;
51 } // namespace analysis
53 #endif // __XBLOCK_HXX__