Langage de programmation du cœur

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

Langage de programmation du cœur(Programming Language from Heart) is a language designed by PSTF.

Although the author is from China, this Esolang is written in French.

Data types

In this Esolang, there are 6 types:

Le numéro: Number, represents in fraction, float, or integer, all valid arithmetic stuff anyways.
La corde: String of character, quote in double angle-bracket, like this: « Quoi? » 
          String is only type that is considered to be a "boy". Also, the spaces between the quotation
          mark and the real string is allowed(but optional).
Le booléen: Vrai or faux.
Le tableau: Same as the "list" in Python 3.
Le couple: A pair of value.
Le vide: Nonetype.

I/O

Output

Imprimer [quelque chose]

This outputs the specified content. Note that there is no automatic newline.

These are avaliable escapes:

  1. \s Saut de ligne
  2. \v Caractère vide
  3. \h Tabulation horizontale
  4. \r Retour
  5. \c Caractère contrôlant
  6. \d Délétion
  7. \e Espace arrière
  8. \g Guillemets gauches
  9. \d Guillemets droits

Our first program

Imprimer « Salut tout le monde!\s »

Input

Saisie avec [invite]

This returns a string you inputed. invite will output first before your input.

A+B Problem

Déclarer une variable appelée A
Déclarer une variable appelée B
Mettez A à saisie avec « Veuillez saisir : »
Mettez B à saisie avec « Veuillez saisir : »
Imprimer A + B


Categories and References