MENTAL
 Main Menu
 Language
 Primitives
 Stop and Continue


Stop and Continue
 STOP AND CONTINUE

"Every message is made of signs" (Ferdinand de Saussure).

"Language consists of a set of signifiers" (Jacques Lacan).



Stop (Halt)

Semantics

Stop or halt the current process, or stop one or more processes.


Syntax

■ // Stop the process in progress.

(■ (p1 ... pn)) // Sequentially stop processes p1 to pn

(■ {p1 ... pn}) // Simultaneously stop processes p1 through pn



Justification

It is the way to stop one or more processes. The stoppage may be permanent or temporary.

If it is permanent it may be because the process has been terminated or because an error condition has occurred.

If it is temporary it is because it could be resumed for different causes, for example:
Examples
  1. ((x*y ≥ n) → ■) // pause by condition

  2. ⟨( x÷0 ≥ ■ )⟩ // stop process if division by zero>

  3. ⟨( x=2 → y=4 → z=5 → ■ )⟩ // stop at the moment the triple condition is met

  4. (■ p) // stop process p

  5. (■ (p1 p2)) // stop sequentially processes p1 and p2

  6. (■ {p1 p2}) // stop simultaneously the processes p1 and p2

Remarks
Continue (Resume)

Semantics

Continue or resume the current process or continue or resume one or more processes.


Syntax

▶ // Resume the current process.

(▶ (p1 ... pn)) // Resume sequentially the processes p1 to pn

(▶ {p1 ... pn}) // Simultaneously resume processes p1 through pn



Justification

It is the opposite operation to Stop:
(■' = ▶)   (▶' = ■)


Examples
  1. (▶ (p1 p2)) // sequentially resume processes p1 and p2

  2. ⟨( ((x*y ≥ n) → (▶ p)) )⟩ // resume p when the condition is met

  3. (p = (x y ■ z u)
    ((p\3)° = ▶) // change stop symbol to resume symbol

Remarks