1 Star 0 Fork 86

ningh2021/pythonvm

forked from hinus/pythonvm 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
binaryFileParser.hpp 978 Bytes
Copy Edit Raw Blame History
hinus authored 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/ningh2021/pythonvm.git
git@gitee.com:ningh2021/pythonvm.git
ningh2021
pythonvm
pythonvm
master

Search