Structure

Introduction

The language has been designed to be as readable as possible. We will explore its structure to understand how it works and how to create powerful programs.

A program is a serie of instructions that define the work the athlete should do. It's as simple as a writing a shopping list.

burpee
burpee
burpee
pull-up
pull-up
pull-up

The athlete should do 3 burpees followed by 3 pull-ups. However, it will soon be repetitive to add some repetitions to that program. That's where quantifiers comes to help.

3 burpees
3 pull-ups

Those two programs defines the same training. It suddenly seems easy to define more complex routines such as:

5 pull-ups
10 push-ups
15 air squats

Sometimes you need to execute a set of exercices multiple times. Quantifiers helps too.

10 rounds of
    5 pull-ups
    10 push-ups
    15 air squats

The athlete should do 10 rounds of 5 pull-ups, 10 push-ups, and 15 air squats. Note that the set of exercices is nested (indented into the quantifier 10). This mechanism defines a parent-child relationship between those two. What about the score?

10 rounds of
    5 pull-ups
    10 push-ups
    15 air squats

score @reps (the higher the better)

Every quantifier or exercice is called a "block". Those blocks can be nested in each others to create those set of exercices. Moreover, they emit some events you can use to add some concurrent exercices or logics.

every minute on the minute:
    10 in 1:00
        20 burpees        
        rest

        when the goal is not reached
            stop every minute on the minute

score @reps (the higher the better)

The in control structure

The in control structure stop the activity when the time is reached. It define a limit of time during which working is allowed. If the athlete finish the exercise before the expressed time cap, he can go to the next one.

in 1:00
    12 burpees

There is some strategies that prevent such a behavior. You can add a resting step or define a max effort.

in 1:00
    12 burpees
    rest
in 1:00 max
    burpees

Note that this two usages are really different. The first let one minute to the athlete to perform 12 burpees and he can rest during the rest of the minute. The second let one minute to perform a maximum of burpees without any resting period.

results matching ""

    No results matching ""