Langage de programmation du cœur
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:
- \s Saut de ligne
- \v Caractère vide
- \h Tabulation horizontale
- \r Retour
- \c Caractère contrôlant
- \d Délétion
- \e Espace arrière
- \g Guillemets gauches
- \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