Semantics in check

This commit is contained in:
2026-04-15 09:18:56 +02:00
parent 6717be038f
commit deeb9350b4
3 changed files with 10 additions and 2 deletions
+4 -2
View File
@@ -53,8 +53,10 @@ pub fn cmd_build() {
fn cmd_check(path: &str) {
let source = read_ms_file(path);
match parser::parse(&source) {
Ok(_) => {
println!("ok");
Ok(ast) => {
println!("parse: ok");
println!("{:#?}", semantic::scope::Scope::from_top(&ast))
}
Err(e) => {
eprintln!("parse error:\n{}", e);