reid-llvm/examples/macro_easy.reid
2025-07-29 01:15:09 +03:00

12 lines
358 B
Plaintext

import std::String;
import std::print;
fn main() -> u8 {
// - TODO make a type of global identifier for globls?
// - TODO figure out if it is possible to map the path to the path of the
// module and not the PWD.
let bytes = test_macro!("./examples/macro_easy_file.txt");
print(String::new() + bytes.length());
return *bytes[0];
}