blog: TDL rewrite

I decided to rewrite TDL, my language for weightlifting plans. The program generates concrete training days from an abstract schedule description. You can find the source on my git server and releases at releases.fireandbrimst.one.

The output looks something like this (see the input and output files):

$ ./TDL schedule.tdl 
schedule20201104-223938.txt

$ cat schedule20201104-223938.txt 
Maxes
=====

Squat: 175.00
HexDeadlift: 200.00
Bench: 110.00
Press: 80.00

Day 1
======

Press
--------

| Set            | Plates           | Resulting |
| -------------- | ---------------- | --------- |
| 32.00 x 5      | 5, 0.5           | 31.00     |
| 40.00 x 5      | 10               | 40.00     |
| 48.00 x 3      | 10, 2.5, 1.25    | 47.50     |
| 48.00 x 7      | 10, 2.5, 1.25    | 47.50     |
| 52.80 x 4      | 10, 5, 1.25      | 52.50     |
| 57.60 x 10     | 10, 5, 2.5, 1.25 | 57.50     |
| 40.00 x 10 x 5 | 10               | 40.00     |

5 sets of 10 chin-ups or 10 rows

[...]

Posted in programming lifting
2020-11-04 21:45 UTC