A full tour of the language and tooling, from base types to recursive functions.
AlgoLab supports the base types taught in class: integers, reals, characters, booleans, and arrays. Implicit coercion only from Integer to Real, everything else is strictly typed.
EntierReelCaractereBooleenType[taille]Variable i, j : Entier ; nom : Chaine ; ok : Booleen Variable notes : Entier[30] Debut i <- 1 nom <- "AlgoLab" ok <- Vrai notes[1] <- 18 Ecrire "i=", i, " nom=", nom Fin
The classic conditional structure, exactly as taught. SinonSi or Sinon_Si, both work. Blocks are evaluated in order.
Si, SI, siVariable note : Entier Debut Lire(note) Si note >= 16 Alors Ecrire "Tres bien" SinonSi note >= 12 Alors Ecrire "Bien" SinonSi note >= 10 Alors Ecrire "Passable" Sinon Ecrire "Insuffisant" FinSi Fin
Pour loop with bound and step (negative allowed to count down), classic TantQue loop. AlgoLab detects invalid steps and recursion at runtime.
Pas -1Variable i, j : Entier Debut Pour i De 1 A 10 Pas 2 Faire Ecrire i FinPour j <- 0 TantQue j < 3 Faire Ecrire j j <- j + 1 FinTantQue Fin
Declare functions with typed parameters and a return type. Recursion supported natively, local scope per call, chained calls possible.
; or ,Quadruple(Double(n))Fonction Fact(n : Entier) : Entier Variable r : Entier Si n == 0 Alors r <- 1 Sinon r <- n * Fact(n - 1) FinSi Retourner r FinFonction Variable resultat : Entier Debut resultat <- Fact(5) Ecrire "5! =", resultat Fin
Arithmetic, comparison, logic. String concatenation with +.
+Addition-Subtraction*Multiplication/Division%Modulo<-Assignment==Equal!=Not equal< >ComparisonETLogical ANDOULogical ORNONNegationHighlighting, snippets, execution, diagnostics — the complete environment to turn VS Code into a pseudo-code IDE. Search for AlgoLab in the VS Code marketplace and install in one click.
algo, si, pour, tant_que, fonctionalgolab.executablePathAlgoLab never returns a stack trace. Every error is phrased in French, located down to the line, with an explanation.
The code doesn't follow the grammar. AlgoLab uses heuristics: it doesn't just say "error", it identifies the missing keyword.
Syntactically correct code that's logically inconsistent: undeclared variable, wrong type, out-of-bounds indexing — all explained clearly.
Division by zero, uninitialized variable, unknown function — detected at runtime with precise location and a fix suggestion.
Download the binary for your OS and the VS Code extension. Five minutes to install.