# 0.1 What you will find

> This specification describes the whole PseudoLearn language and its engine, with examples that really run every time it is built.

Web page: https://pseudolearn.app/en/spec/lectura/contenido

> **In one sentence**
>
> This specification describes the whole PseudoLearn language and its engine, with examples that really run every time it is built.

## 0.1.1 How it works

The specification is divided into thirteen parts and six appendices. Each part covers a topic and each section explains a single idea. You can read it from start to finish or jump straight to what you need.

The parts follow the order in which people usually learn to program. First the loose pieces of the text, then data, then instructions, and finally how the engine works inside.

**Figure 0.1-1: Map of the parts**

A diagram of stacked boxes. At the top Part 0 on how to read and Part I with the overview. Below, in two columns, lexical structure and types; then expressions and declarations; then control flow; then subroutines and objects. At the bottom a band with programs, errors, concurrency, library and engine, and another with the appendices.

The route through the specification. The parts at the top support the ones below; the appendices are for looking things up.

Every program in this specification was run with the real PseudoLearn engine. Below each one you see what it wrote and how it ended. If the engine ever changed its behaviour, the specification would stop building until the text was corrected.

### Program: The first program

```pseudolearn
Algorithm Hola
  Write "Hola, mundo";
EndAlgorithm
```

**Output**

```text
Hola, mundo
```

*The program finishes normally.*

## 0.1.2 Reading layers

Every section has a body that makes sense without prior knowledge. Around the body there are boxes you can read or skip:

| Box | What it is for |
| --- | --- |
| In one sentence | The idea of the section summed up in one sentence |
| Exact limit | The precise number when it matters: ranges, sizes, depths |
| Common errors | The real engine messages and how to fix them |
| Inside | What the engine does: intermediate representation and trace |
| Note | Typical confusions and something to try on your own |

The body never depends on the collapsible boxes. You can skip every "Inside" without losing the thread.

> **Note**
>
> This specification explains the language to people. It is not a step-by-step course: the learning path is for that. Nor is it the internal description of the engine's code.

**In short**
- Thirteen parts ordered from small to large and six reference appendices.
- One idea per section, with a figure, run examples and a summary.
- The collapsible boxes are optional.
- Every example was run with the engine when the specification was built.

**See also**
- [0.2 Typographic conventions](https://pseudolearn.app/en/spec/lectura/convenciones.md)
- [1.1 What PseudoLearn is](https://pseudolearn.app/en/spec/vision/que-es.md)
- [E.1 Glossary](https://pseudolearn.app/en/spec/apendice/glosario.md)
