Add Tampio hello world example, syntax.css, and update README

This commit is contained in:
2026-03-29 14:43:20 +03:00
parent 721e1eb8f0
commit 7254c1d1fd
3 changed files with 103 additions and 2 deletions
+10 -2
View File
@@ -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.