-DictEntry BinaryWriter::create_entry(const Statement &st)
-{
- static const char types[] = "ifsbe";
-
- string args;
- for(ValueArray::const_iterator i = st.args.begin(); i!=st.args.end(); ++i)
- {
- if(i->get_type()>=5)
- throw InvalidParameterValue("Invalid argument type");
- args += types[i->get_type()];
- }
-
- return DictEntry(st.keyword, args);
-}
-