Ada

Besoin

Fournir un équivalent industriel de langage comme Pascal ou Delphi.

Analyse

Ada est un langage de programmation OO généraliste.

Il supporte :

Il propose également des interfaces standardisées vers d'autres langages de programmation et librairies.

La syntaxe de Ada est inspirée de Pascal et Modula.

Exemples

Un exemple de code source Ada est :

with Text_IO;
with
Display;
with
Fact;

function
Get_Bits (X : Bit_Array; P : Bit; N : Offset) return Bit_Array is
begin
return X (P – N + 1 .. P);
end Get_Bits;

procedure Main is
Length : Integer := 8265;
Width : Integer := 0252;
Height : Integer := 8292;
begin
Text_IO.Put_Line (Length'img);
Text_IO.Put_Line (Width'img);
Text_IO.Put_Line (Height'img);

for K in 1 .. 4 loop
Display ("Factorial", K, Fact (K));
end loop;
end Main;

Notes

Voir