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/tests/r8_test.cc
T
2026-07-04 09:22:42 +08:00

14 lines
364 B
C++

#include <iostream>
#include "r8asm/r8asm.hh"
int main(int argc, char *argv[]) {
std::string src_filename = argv[1];
auto src = r8asm_read_src(src_filename.c_str());
auto out_tape = r8asm_tape_out(r8asm_expand_macros(r8asm_preprocess(src)));
for (auto i : out_tape)
std::cout << ROT8_BC_TO_CHAR(i);
std::cout << std::endl;
return (0);
}