Skip to main content

mysz_core/
lib.rs

1pub mod backend;
2pub mod compiler;
3pub mod ir;
4pub mod lex;
5pub mod parse;
6pub mod semantics;
7pub mod utils;
8use std::path::Path;
9
10use crate::utils::ctx::CompilerCtx;
11
12pub fn compile_file<'a, P: AsRef<Path>>(
13    ctx: CompilerCtx<'a, P>,
14    output_filename: &str,
15) -> Result<(), String> {
16    compiler::compile_root_file(ctx, output_filename)
17}
18
19pub fn check_file<'a, P: AsRef<Path>>(ctx: CompilerCtx<'a, P>) -> Result<(), String> {
20    compiler::check_root_file(ctx)
21}