Skip to content

Specification0 · How to read this specification

0.6

Editions

An edition is a closed version of the language; this specification describes the 2027 edition.

Markdown version

0.6.1 How it works

The language changes over time, but each edition fixes a set of rules that does not move. The current edition is called 2027. A program written for 2027 is always analysed and run the same way.

The edition is not written inside the program and does not depend on the profile. Switching from Spanish to English does not enable constructs from other editions.

Figure 0.6-1.The 2027 edition brings together a single grammar, a single type policy and a fixed prelude of built-in symbols.

A frame titled 2026 edition with three boxes: a single grammar, a single type policy and a fixed prelude with examples of built-in functions.

0.6.2 The prelude

Every program of the 2027 edition sees a prelude from the start: a fixed set of built-in functions and types, such as length or Optional. It does not need importing and is not read from any file on the computer. If you declare a subroutine with the same name as a built-in function, yours hides it.

ProgramUsing the prelude without importing anything

Algorithm Preludio
  Write length("PseudoLearn");
  Write sqrt(81);
EndAlgorithm

Output

11
9.0

The program finishes normally.

The prelude declares names, never permissions. Reading a file or using the network requires asking the environment for a capability, as explained in Part XII.

0.6.3 Common rules of the edition

The 2027 edition applies a single grammar: every simple statement ends with a semicolon, every parameter declares its type and indices start at zero. There is no "flexible mode" and no option that changes the meaning of a program.

In short

  • The current edition is 2027.
  • An edition is not written in the program and does not depend on the profile.
  • The prelude gives functions and types without importing anything, but not permissions.
  • A single grammar and a single type policy for everyone.