1 Star 0 Fork 86

陈浩/pythonvm

forked from hinus/pythonvm 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
binaryFileParser.hpp 978 Bytes
一键复制 编辑 原始数据 按行查看 历史
hinus 提交于 2018-08-05 00:49 +08:00 . refactor
#ifndef BINARY_FILE_PARSER_HPP
#define BINARY_FILE_PARSER_HPP
#include "util/bufferedInputStream.hpp"
#include "util/arrayList.hpp"
#include "object/hiObject.hpp"
#include "object/hiInteger.hpp"
#include "object/hiString.hpp"
#include "code/codeObject.hpp"
class BinaryFileParser {
private:
BufferedInputStream* file_stream;
int cur;
ArrayList<HiString*> _string_table;
public:
BinaryFileParser(BufferedInputStream* stream);
public:
CodeObject* parse();
CodeObject* get_code_object();
HiString* get_byte_codes();
HiString* get_no_table();
int get_int();
HiString* get_string();
HiString* get_name();
HiString* get_file_name();
ArrayList<HiObject*>* get_consts();
ArrayList<HiObject*>* get_names();
ArrayList<HiObject*>* get_var_names();
ArrayList<HiObject*>* get_free_vars();
ArrayList<HiObject*>* get_cell_vars();
ArrayList<HiObject*>* get_tuple();
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/chenhao7253886/pythonvm.git
git@gitee.com:chenhao7253886/pythonvm.git
chenhao7253886
pythonvm
pythonvm
master

搜索帮助