feat(selfhost-cli): surface parser diagnostics — syntax errors no longer pass check silently

This commit is contained in:
2026-07-28 22:01:49 +03:00
parent 497e01d537
commit 869fb9c7d3
5 changed files with 71 additions and 35 deletions
+4
View File
@@ -0,0 +1,4 @@
[Package]
Name = "parse_recovery"
Version = "0.1.0"
Type = "bin"
+18
View File
@@ -0,0 +1,18 @@
func Good() -> int {
return 1;
}
func Bad() -> int {
let x: int = ;
return 0;
}
func AlsoBad() -> int {
let y: int = 5 + ;
let z: int = 6;
return y;
}
func AlsoGood() -> int {
return 2;
}