Skip to content
Hub Nexus

No author yetClaim it

Version 1Updated 1 min read

Support

This computer programming article is available in pseudocode, Ada, C, C++, and Delphi.

Computing » Computer Science » Computer Programming » Ada Programming

Note: there are some simplifications in the explanations below. Don't take anything too literally.

Most programming languages have the concept of a statement. A statement is a command that the programmer gives to the computer. For example:

Ada.Text_IO.Put_Line ("Hi there!");

This command has a verb ("Put_Line") and other details (what to print). In this case, the command "Put_Line" means "show on the screen," not "print on the printer." The programmer either gives the statement directly to the computer (by typing it while running a special program), or creates a text file with the command in it. You could create a file called "hi.txt", put the above command in it, and give the file to the computer.

If you have more than one command in the file, each will be performed in order, top to bottom. So the file could contain:

Ada.Text_IO.Put_Line ("Hi there!");
Ada.Text_IO.Put_Line ("Strange things are afoot...");

This does seem like a lot of typing but don't worry: Ada allows you to declare shorter aliasnames if you need a long statement very often.

Where this page came from

This page was imported from Wikibooks. From “Ada Programming” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

Comments

Spinner Logo

Next in Ada Programming

CC BY-SA 4.0
This computer programming article is available in [pseudocode]( and Ada. [Computing]( » [Computer Science]( » [Computer Programming]( » [Ada Programming]( Variables are references that stand in for a value that is contained at a certain memory address. Variables are said to have a value and may have
CC BY-SA 4.0
[Computing]( » [Computer Science]( » [Computer Programming]( » [Ada Programming]( ## Character set The character set used in Ada programs is composed of: - Upper-case letters: A, ..., Z and lower-case letters: a, ..., z. - Digits: 0, ..., 9. - Special characters. Take into account that in Ada 95 the
CC BY-SA 4.0
[Computing]( » [Computer Science]( » [Computer Programming]( » [Ada Programming]( ## Single character delimiters & ampersand (operator) ' apostrophe, tick ( left parenthesis ) right parenthesis asterisk, multiply (operator) + plus sign (operator) , comma hyphen, minus (operator) . full stop, point,
CC BY-SA 4.0
[Computing]( » [Computer Science]( » [Computer Programming]( » [Ada Programming]( ## Standard operators [Ada]( allows [operator overloading]( for all standard operators and so the following summaries can only describe the suggested standard operations for each operator. It is quite possible to misus
CC BY-SA 4.0
[Computing]( » [Computer Science]( » [Computer Programming]( » [Ada Programming]( When entities like variables or subprograms are declared, certain properties thereof normally are left to the compiler to specify (like the size or the address of a variable, the calling convention of a subprogram). Pr
CC BY-SA 4.0
[Computing]( » [Computer Science]( » [Computer Programming]( » [Ada Programming]( When entities like variables or subprograms are declared, certain properties thereof normally are left to the compiler to specify (like the size or the address of a variable, the calling convention of a subprogram). Pr