[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/m0dulo/LyxPythonVM/master/src/code/binaryFileParser.hpp [Back]  [Original]

#ifndef BINARY_FILE_PARSER_HPP
#define BINARY_FILE_PARSER_HPP

#include "util/bufferedInputStream.hpp"
#include "util/arrayList.hpp"
#include "object/lyxObject.hpp"
#include "object/lyxInteger.hpp"
#include "object/lyxString.hpp"
#include "code/codeObject.hpp"

class BinaryFileParser {
private:
  BufferedInputStream *file_stream;
  int cur;
  ArrayList _string_table;

public:
  BinaryFileParser(BufferedInputStream *stream);

public:
  CodeObject *parse();
  CodeObject *get_code_object();
  LyxString *get_byte_codes();
  LyxString *get_no_table();
  int get_int();
  LyxString *get_string();
  LyxString *get_name();

  LyxString *get_file_name();

  ArrayList *get_consts();
  ArrayList *get_names();
  ArrayList *get_var_names();
  ArrayList *get_free_vars();
  ArrayList *get_cell_vars();
  ArrayList *get_tuple();
};

#endif

Web Proxy Viewer  |  New URL  |  Original Page