typechecking still buggy, but close enough cause i cant handle any more typechecker dev added: - Functions - Constants - Better file positions for error reporting - Better error reporting, with examples being drawn in term -MC
18 lines
479 B
Rust
18 lines
479 B
Rust
use crate::{error, help, code_block};
|
|
|
|
|
|
|
|
pub fn missing_main_fn() {
|
|
error!("Main function not found, please create one lol");
|
|
help!("Heres a basic main function with code that prints hello world:\n{}",
|
|
code_block!(
|
|
concat!(
|
|
"include \"std.mcl\"\n",
|
|
"\n",
|
|
"fn main with void retuns void then\n",
|
|
" \"Hello world!\\n\" puts\n",
|
|
"done\n"
|
|
)
|
|
)
|
|
);
|
|
} |