1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::common::*; pub(crate) struct Compiler; impl Compiler { pub(crate) fn compile(src: &str) -> CompilationResult<Justfile> { let tokens = Lexer::lex(src)?; let ast = Parser::parse(&tokens)?; Analyzer::analyze(ast) } }