This repository has been archived on 2026-09-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
R8ASM/include/r8asm/r8asm_parse.hh
T

26 lines
605 B
C++

#ifndef R8ASM_PARSE
#define R8ASM_PARSE
#include "r8asm/r8asm_core.hh"
#include <list>
#include <map>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define EMPTY_CHARS (" \t\n\r\f\v")
typedef std::list<std::vector<std::string>>::iterator r8asm_src_point;
struct R8Src {
std::list<std::vector<std::string>> raw_src;
std::stack<std::pair<r8asm_src_point, r8asm_src_point>> codeblocks;
void preprocess();
};
R8Src read_src(std::string filename);
std::vector<R8Instruction> r8asm_preprocess(R8Src &src);
extern std::map<std::string, R8MetaOp> r8asm_parsemap;
#endif