#define MSP_DATAFILE_BINARYPARSER_H_
#include <map>
-#include "binarydict.h"
#include "parsermode.h"
+#include "type.h"
namespace Msp {
namespace DataFile {
class BinaryParser: public ParserMode
{
private:
- typedef std::map<unsigned, DictEntry> Dictionary;
+ typedef std::map<int, StatementKey> Dictionary;
typedef std::map<unsigned, std::string> StringMap;
Dictionary dict;
StringMap strings;
bool first;
+ unsigned float_precision;
public:
BinaryParser(Input &i, const std::string &s);
virtual Statement parse();
+ virtual void process_control_statement(const Statement &);
private:
- Statement parse_statement();
- long long parse_int();
- float parse_float();
- std::string parse_string();
- bool parse_bool();
- std::string parse_enum();
- const std::string &lookup_string(unsigned) const;
+ IntType::Store parse_int();
+ FloatType::Store parse_float();
+ StringType::Store parse_string();
+ BoolType::Store parse_bool();
+ SymbolType::Store parse_symbol();
};
} // namespace DataFile