reid-llvm/reid_src/hello_world.reid

21 lines
369 B
Plaintext

import std::print;
import std::from_str;
import std::add_char;
import std::set_char;
import std::free_string;
import std::add_num_to_str;
fn main() -> i32 {
let mut test = from_str("hello world");
add_char(&mut test, '!');
set_char(&mut test, 'B', 0);
add_num_to_str(&mut test, 7);
print(&test);
free_string(&mut test);
return 0;
}