Add Tampio hello world example, syntax.css, and update README
This commit is contained in:
@@ -12,12 +12,20 @@ The easiest way to try Tampio, no manual `libvoikko` setup required:
|
||||
docker compose run --rm tampio
|
||||
```
|
||||
|
||||
This drops you into a shell with `tampio` available. Run any example:
|
||||
This drops you into a shell with `tampio` available. Compile an example to HTML:
|
||||
|
||||
```sh
|
||||
tampio examples/basics/hello.tampio
|
||||
tampio -i -p examples/basics/hello.itp > examples/basics/hello.html
|
||||
```
|
||||
|
||||
Then serve it locally and open it in your browser:
|
||||
|
||||
```sh
|
||||
python3 -m http.server 9994 --directory examples/basics
|
||||
```
|
||||
|
||||
Go to `http://localhost:9994/hello.html`.
|
||||
|
||||
## What is Tampio?
|
||||
|
||||
Tampio programs read like Finnish sentences. Methods are defined using grammatical cases, so the language's syntax is shaped by natural-language morphology rather than punctuation.
|
||||
|
||||
Reference in New Issue
Block a user