Update README.md
This commit is contained in:
parent
f9e360ce70
commit
ef6a993fde
22
README.md
22
README.md
@ -72,9 +72,29 @@ let @main in {
|
||||
}
|
||||
```
|
||||
|
||||
## Examples that actually work right now
|
||||
Exit with exit code 0 (success):
|
||||
```
|
||||
let @main in {
|
||||
0
|
||||
}
|
||||
```
|
||||
Exit with non-zero exit code (failure):
|
||||
```
|
||||
let @main in {
|
||||
1 // or any other number
|
||||
}
|
||||
```
|
||||
Exit with calculated exit code (yes, this language is a glorified calculator right now):
|
||||
```
|
||||
let @main in {
|
||||
3 + 5 * 6 // It doesn't even support parentheses, what a failure
|
||||
} // the exit code is actually computed at compile time by LLVM (optimizations!!)
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
More documentation is available at [Documentation](docs/Documentation.md).
|
||||
More documentation is available at [Documentation](docs/Documentation.md), whenever this file gets created.
|
||||
|
||||
## Building
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user