Added Hello World. Just coz.

This commit is contained in:
Bobbi Webber-Manners 2018-05-01 17:09:07 -04:00 committed by GitHub
parent 8d927c9104
commit 5571265666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -927,6 +927,16 @@ The final step of compilation involves iterating through the `callsbegin` list,
# Code Examples
## Hello World
This one is obligatory:
```
pr.msg "Hello world!"; pr.nl
end
```
You can omit the `end` statement if you like.
## Recursive Factorial
This example shows how EightBall can support recursion. I should point out that it is much better to do this kind of thing using iteration, but this is a fun simple example: