tour: add some images

This commit is contained in:
Kartik K. Agaram 2021-11-27 12:18:23 -08:00
parent ef0b205c08
commit a09da47b2a
3 changed files with 9 additions and 4 deletions

BIN
doc/counter-edit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
doc/counter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

13
tour.md
View File

@ -38,15 +38,20 @@ Run the simplest example app:
src/teliva counter.tlv src/teliva counter.tlv
``` ```
<img alt='screenshot of Teliva running a counter app' src='doc/counter.png'>
Can you figure out what this app does, what you can do with it? There's a Can you figure out what this app does, what you can do with it? There's a
number on screen. Hit `enter`. The number increments by 1. Hit `ctrl-x` to number on screen. Hit `enter`. The number increments by 1. Hit `ctrl-x` to
exit (press `ctrl` and `x` on your keyboard at the same time). exit (press `ctrl` and `x` on your keyboard at the same time).
Run the app again. Try editing the app by hitting `ctrl-e`. You see a "big Run the app again. Try editing the app by hitting `ctrl-e`. You see a "big
picture" view of the app. Spend a few moments scanning this page. All programs picture" view of the app. Spend a few moments scanning this page.
consist of data and _functions_: code that operates on data in some way.
Teliva apps always start by running the special function `main`. The big <img alt='editing the code for the counter app' src='doc/counter-edit.png'>
picture orders functions from the _top down_. It shows `main` up top,
All programs consist of data and _functions_: code that operates on data in
some way. Teliva apps always start by running the special function `main`. The
big picture orders functions from the _top down_. It shows `main` up top,
functions that `main` calls below, functions called by _those_ functions next, functions that `main` calls below, functions called by _those_ functions next,
and so on. and so on.