mirror of
https://github.com/bobbimanners/EightBall.git
synced 2024-05-29 03:41:32 +00:00
Added Hello World. Just coz.
This commit is contained in:
parent
8d927c9104
commit
5571265666
10
README.md
10
README.md
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user