Exercises are composed by blocks which can contain different questions. The main struture of a an exercise file is then:
block1 - question 1 question 2 ... question k1 block2 - question 1 question 2 ... question k2 ... blockn - question 1 question 2 ... question kn
This is constructed by using statements that define the differents parts
and options of the exercise. Every exercise has to start with
block
and end with endblock
. The statement of the exercise
is enclosed between statement
and endstatement
.
Every question has to start
with question
and end with endquestion
. Answers to
questions can be optionally provided enclosing the answer between
answer
and endanswer
. Blank lines and spaces are ignored
except when they are in statement of exercises or questions. Any line
that starts with #
is considered a comment.