just/src/compiler.rs

14 lines
234 B
Rust
Raw Normal View History

use super::*;
pub(crate) struct Compiler;
impl Compiler {
pub(crate) fn compile(src: &str) -> CompileResult<Justfile> {
let tokens = Lexer::lex(src)?;
let ast = Parser::parse(&tokens)?;
2023-01-24 20:06:33 -08:00
Analyzer::analyze(&ast)
}
}