Created page with "== Examples == The simplest program : <syntaxhighlight lang="Ada" style="background-color: #e5e5e5"> ----------- procedure HELLO_WORLD is ----------- begin PUT_LINE( "Hello_world !" ); end HELLO_WORLD; ‎</syntaxhighlight> using "syntaxhighlight"."
 
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 3: Line 3:
The simplest program :
The simplest program :


<syntaxhighlight lang="Ada" style="background-color: #e5e5e5">
<syntaxhighlight lang="ada">
with TEXT_IO;
           -----------
           -----------
procedure HELLO_WORLD
procedure HELLO_WORLD
is        -----------
is        -----------
begin
begin
   PUT_LINE( "Hello_world !" );
   TEXT_IO.PUT_LINE( "Hello_world !" );
end HELLO_WORLD;
end;
</syntaxhighlight>
</syntaxhighlight>


using "syntaxhighlight".
A simple ASCII JSON reader/writer program :
[[JSON package]]
 
'''Micro-controller programming'''
 
'''Ada 83''' is a very convenient tool for micro-controller programming. The famous Arduino boards equipped with AVR chips can be programmed in '''Ada 83'''. Some examples [[Ada_83_on AVR_chips|here]].

Latest revision as of 17:57, 29 March 2025

Examples

The simplest program :

with TEXT_IO;
          -----------
procedure HELLO_WORLD
is        -----------
begin
  TEXT_IO.PUT_LINE( "Hello_world !" );
end;

A simple ASCII JSON reader/writer program : JSON package

Micro-controller programming

Ada 83 is a very convenient tool for micro-controller programming. The famous Arduino boards equipped with AVR chips can be programmed in Ada 83. Some examples here.