Algorithmic natural language interpreter (language using french keywords)
Usage
Installation
npm install -g algo-lang
Command line
Basic usage:
algo-lang path/to/file.algo
Pretty print your file in console:
algo-lang --pretty-print path/to/file.algo
Language
Quick example
algorithme test
variables
entier i, j
algorithme procedure swap
parametres globaux
entier i, j
variables
entier tmp
debut
tmp ← i
i ← j
j ← tmp
fin algorithme procedure swap
debut
i ← 2
j ← 4
swap(i, j)
afficher(chaine(i) + chaine(j)) /* prints 42 */
fin algorithme test
Language documentation
Documentation in french