error recovery!

This commit is contained in:
nora 2023-08-06 00:07:10 +02:00
parent c0c08488ba
commit ef04f21100
18 changed files with 799 additions and 366 deletions

View file

@ -0,0 +1,5 @@
function main() = (
let a: Int = "";
let b: Int = "";
c;
);

View file

@ -0,0 +1,12 @@
error: cannot find c
--> $DIR/basic_recovery.nil:4
4 | c;
^
error: cannot assign String to Int
--> $DIR/basic_recovery.nil:2
2 | let a: Int = "";
^
error: cannot assign String to Int
--> $DIR/basic_recovery.nil:3
3 | let b: Int = "";
^

View file

@ -2,3 +2,7 @@ error: unexpected end of file
--> $DIR/mismatched_parens.nil:2
2 |
^
error: `main` function not found
--> $DIR/mismatched_parens.nil:1
1 | function main() = (
^