Requirements

Program requirements

This are the requirements for a program.

RP01: read

Must be able to be read from:

  • RP011: A <string>.

  • RP012: A <stream>.

  • RP013: A <pathname>.

RP02: size

We must know how many instructions has a program.

RP03: element

An instruction can be accessed by an index. This index is a <integer> number with range from 0 to the size of the program minus 1.

RP04: append

It is possible to add new instructions, returning a new program with this instruction added at the end.