+ Set<const Statement *> set_cst(cur_st, &st);
+
+ try
+ {
+ LoaderAction *act = find_action(ActionKey(st.keyword, st.get_signature()));
+ if(act)
+ {
+ sub_loaded = false;
+ act->execute(*this, st);
+ if(check_sub_loads && !st.sub.empty() && !sub_loaded)
+ throw logic_error("substatements ignored");
+ }
+ }
+ catch(const data_error &)
+ {
+ throw;
+ }
+ catch(const exception &e)
+ {
+ throw data_error(st.source, st.line, e);
+ }
+}
+
+void Loader::load_sub_with(Loader &ldr)
+{
+ if(!cur_st)
+ throw logic_error("no current statement");
+
+ ldr.load(*cur_st);
+ sub_loaded = true;
+}
+
+void Loader::add(const string &kwd, LoaderAction *act)
+{
+ ActionKey key(kwd, (act ? act->get_signature() : "*"));
+ ActionMap::iterator i = actions.find(key);