public:
NodeContainer() { }
NodeContainer(const NodeContainer &);
+
+ void push_back_nocopy(const typename C::value_type &v)
+ { C::push_back(0); C::back() = v; }
};
template<typename T>
virtual void visit(NodeVisitor &);
};
-struct ParenthesizedExpression: Expression
-{
- NodePtr<Expression> expression;
-
- virtual ParenthesizedExpression *clone() const { return new ParenthesizedExpression(*this); }
- virtual void visit(NodeVisitor &);
-};
-
struct VariableReference: Expression
{
std::string name;
struct InterfaceBlock: Statement
{
+ NodePtr<Layout> layout;
std::string interface;
- std::string name;
+ std::string block_name;
NodePtr<Block> members;
std::string instance_name;
bool array;
Module();
};
+std::string get_unused_variable_name(const Block &, const std::string &);
+
+bool is_same_type(const TypeDeclaration &, const TypeDeclaration &);
+int get_layout_value(const Layout &, const std::string &, int = -1);
+
} // namespace SL
} // namespace GL
} // namespace Msp