aboutsummaryrefslogtreecommitdiff
path: root/README
blob: 992e132bfc1a7182933b9806761fba17e6b0d738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This simple program, which I wrote mainly as an excuse to try out the Hare
programming language [1], reads a list of letter pairs from a file, then
prompts the user for commands. The interface is similar to that of ed(1).
The main command 'r' starts a random training session, which consists of 
the program printing a random letter pair, waiting for the use to type
enter, print the text associated with the letter pair, waiting again and
repeating until EOF (Ctrl+D) is encountered.

To try it out run:

hare run lepa.ha example.txt

Then type 'r' followed by Enter to start the random training session.
Other commands include '?' (help) and 'q' (quit). For more, see the code.

[1] https://harelang.org

Generated with cgit - Back to sebastiano.tronto.net