class BinaryParser: public ParserMode
{
private:
- typedef std::map<int, StatementKey> Dictionary;
+ typedef std::map<int, StatementInfo> Dictionary;
typedef std::map<unsigned, std::string> StringMap;
Dictionary dict;
StringMap strings;
unsigned float_precision;
+ StatementInfo *cur_info;
+ std::vector<unsigned> sub_remaining;
public:
BinaryParser(Input &i, const std::string &s);
virtual Statement parse();
virtual void process_control_statement(const Statement &);
+
+ virtual const StatementKey *peek(unsigned);
+ virtual bool parse_and_load(unsigned, Loader &, const LoaderAction &);
+
private:
IntType::Store parse_int();
FloatType::Store parse_float();