Add documentatioN

This commit is contained in:
nora 2023-11-05 16:56:47 +01:00
parent a699262671
commit bf73203182
8 changed files with 175 additions and 2 deletions

View file

@ -0,0 +1,9 @@
//@check-pass
function helloWorld() = ;
function block() = (
1;
2;
);
function main() = ;

View file

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

View file

@ -0,0 +1,3 @@
mod b;
function main() = ;

View file

@ -0,0 +1,4 @@
error: .nil files cannot have submodules. use .mod.nil in a subdirectory
--> $DIR/nil_submodules.nil:1
1 | mod b;
^