Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
2Activity

Table Of Contents

1PREFACE
About Ada
Programming in the large
Programming in the small
The Language Reference Manual
Ada Conformity Assessment Test Suite
Programming in Ada
Getting Started
Language Features
Computer Programming
Language Summary
External resources
Source Code
References
See also
Resources
Manuals and guides
Associations
Free online books/courses
Authors and contributors
2BASIC
"Hello, world!" programs
"Hello, world!"
"Hello, world!" with renames
"Hello, world!" with use
FAQ: Why is "Hello, world!" so big?
Things to look out for
Comb Format
Notes
Type and subtype
Constrained types and unconstrained types
Dynamic types
Separation of concerns
3INSTALLING
AdaMagic from SofCheck
AdaMULTI from Green Hills Software
DEC Ada from HP
GNAT, the GNU Ada Compiler from AdaCore and the Free Software Foundation
GNAT GPL Edition
GNAT Modified GPL releases
GNAT 3.15p
GNAT Pro
The GNU Ada Project
GNAT for AVR microcontrollers
Prebuilt packages as part of larger distributions
AIDE (for Microsoft Windows)
Blastwave (for Solaris on SPARC and x86)
Cygwin (for Microsoft Windows)
Debian (GNU/Linux and GNU/kFreeBSD)
DJGPP (for MS-DOS)
FreeBSD
Gentoo GNU/Linux
GNAT for Macintosh (for Mac OS 9 and X)
Mandriva Linux
MinGW (for Microsoft Windows)
SuSE Linux
ICC from Irvine Compiler Corporation
Janus/Ada 83 and 95 from RR Software
ObjectAda from Aonix
Power Ada from OC Systems
Rational Apex from IBM Rational
SCORE from DDC-I
XD Ada from SWEP-EDS
4BUILDING
Building with various compilers
GNAT
GNAT command line
GNAT IDE
GNAT with Xcode
Rational APEX
DEC Ada for VMS
DEC Ada IDE
To be completed
Compiling our Demo Source
ObjectAda
ObjectAda commandline
5CONTROL
Conditionals
if-else
Optimizing hints
case
Unconditionals
return
goto
Isn't goto evil?
Loops
Endless Loop
Loop with Condition at the Beginning
loop with condition at the end
loop with condition in the middle
for loop
for loop on arrays
Working Demo
Wikibook
6TYPE SYSTEM
Predefined types
The Type Hierarchy
Concurrency Types
Limited Types
Defining new types and subtypes
Creating subtypes
Derived types
Subtype categories
Anonymous subtype
Base type
Constrained subtype
Definite subtype
Indefinite subtype
Named subtype
Unconstrained subtype
Qualified expressions
Type conversions
Explicit type conversion
Change of Representation
Checked conversion for non-numeric types
View conversion, in object-oriented programming
View renaming
Address conversion
Unchecked conversion
Overlays
Export / Import
Integer types
7INTEGER TYPES
Working demo
8UNSIGNED INTEGER TYPES
Description
9ENUMERATIONS
Operators and attributes
Enumeration literals
Characters as enumeration literals
Booleans as enumeration literals
Enumeration subtypes
Differences between Ordinary and Decimal Fixed Point Types
Ada 95 Reference Manual
Ada 2005 Reference Manual
11ARRAYS
Declaring arrays
Basic syntax
With known subrange
With unknown subrange
Arrays with more than one dimension
Using arrays
Assignment
Concatenate
Array Attributes
Empty or Null Arrays
12RECORDS
Basic record
Null record
Record Values
Discriminated record
Variant record
Mutable and immutable variant records
Union
Tagged record
Abstract tagged record
With aliased elements
Limited Records
Ada Reference Manual
Ada 95
Ada 2005
13ACCESS TYPES
Different access types
Pool access
Access all
Access constant
Anonymous access
Not null access
Constant anonymous access
Access to subprogram
Anonymous access to subprogram
Using access types
Creating object in a storage pool
Deleting object from a storage pool
Implicit dereferencing
Access FAQ
Access vs. access all
Access performance
Access vs. System.Address
C compatible pointer
Where is void*?
14LIMITED TYPES
Initialising Limited Types
15STRINGS
Fixed-length string handling
Bounded-length string handling
Unbounded-length string handling
16SUBPROGRAMS
Procedures
Functions
Named parameters
Default parameters
17PACKAGES
Parts of a package
The public package specification
The private package specification
Making operators visible
Package organisation
Nested packages
Subunits
Wikipedia
18INPUT OUTPUT
Text I/O
Direct I/O
Sequential I/O
Storage I/O
Stream I/O
19EXCEPTIONS
Robustness
Modules, preconditions and postconditions
Predefined exceptions
Input-output exceptions
Exception declarations
Raising exceptions
Exception handling and propagation
Information about an exception occurrence
20GENERICS
Parametric polymorphism (generic units)
Generic parameters
Generic formal objects
Generic formal types
Generic formal subprograms
Generic instances of other generic packages
Instantiating generics
Advanced generics
Generics and nesting
Generics and child units
21TASKING
Tasks
Rendezvous
Selective Wait
Guards
Protected types
Entry families
Termination
Timeout
Conditional entry calls
Requeue statements
Scheduling
Interfaces
Ada Quality and Style Guide
22OBJECT ORIENTATION
Object-orientation on Ada
The package
A little note for C++ programmers
The tagged record
The class-wide type, again
Abstract types
Class names
Classes/Class
Class/Object
Class/Class_Type
23ADA 2005
Language features
New packages
Pages in the category Ada 2005
External links
Papers and presentations
Rationale
Language Requirements
Ada Issues
24TIPS
Full declaration of a type can be deferred to the unit's body
Lambda calculus through generics
Compiler Messages
Text_IO Issues
25ALGORITHMS
Introduction
Chapter 1: Introduction
To Lower
Equal Ignore Case
Chapter 6: Dynamic Programming
Fibonacci numbers
Simple Implementation
Cached Implementation
Memory Optimized Implementation
No 64 bit integers
26FUNCTION OVERLOADING
Demonstration
calling the first function
calling the second function
Function overloading in Ada
27MATHEMATICAL CALCULATIONS
Simple calculations
Addition
Subtraction
Multiplication
Division
Division
Exponential calculations
Power of
Root
Logarithm
Higher math
Trigonometric calculations
Hyperbolic calculations
Complex arithmethic
Vector and Matrix Arithmetic
28STATEMENTS
29VARIABLES
Assignment statements
Uses
variables
30LEXICAL ELEMENTS
Character set
Lexical elements
Identifiers
Numbers
Character literals
String literals
Delimiters
Comments
Reserved words
Keywords
31KEYWORDS
Language summary keywords
List of keywords
32DELIMITERS
Single character delimiters
Compound character delimiters
Others
33OPERATORS
Standard operators
Logical operators
Relational operators
Binary adding operators
Unary adding operators
Multiplying operator
Highest precedence operator
Shortcut operators
Membership tests
34ATTRIBUTES
Language summary attributes
List of language defined attributes
A – B
D – F
G – L
O – R
T – V
W – Z
List of implementation defined attributes
A – D
E – H
I – N
O – T
U – Z
35PRAGMAS
List of language defined pragmas
A – H
I – O
P – R
S – Z
List of implementation defined pragmas
A – C
D – H
I – L
M – S
T – Z
36LIBRARIES: STANDARD
Implementation
Portability
37LIBRARIES: ADA
List of language defined child units
G – R
R – S
T – U
List of implementation defined child units
A – K
L – Q
R – Z
38LIBRARIES: INTERFACES
Child Packages
39LIBRARIES: SYSTEM
Libraries: GNAT
40LIBRARIES: GNAT
Child packages
Libraries
41LIBRARIES
Predefined Language Libraries
Other Language Libraries
42LIBRARIES: MULTI-PURPOSE
Libraries: Container
43LIBRARIES: CONTAINER
44LIBRARIES: GUI
External Links
Libraries: Distributed
45LIBRARIES: DISTRIBUTED
46LIBRARIES: DATABASE
Libraries: Web
47LIBRARIES: WEB
48LIBRARIES: IO
Platform
49PLATFORM
50PLATFORM: LINUX
Platform: Windows
51PLATFORM: WINDOWS
52PLATFORM: VM
Portals
53PORTALS
54GNU FREE DOCUMENTATION LICENSE
0. PREAMBLE
1. APPLICABILITY AND DEFINITIONS
2. VERBATIM COPYING
3. COPYING IN QUANTITY
4. MODIFICATIONS
5. COMBINING DOCUMENTS
6. COLLECTIONS OF DOCUMENTS
7. AGGREGATION WITH INDEPENDENTWORKS
8. TRANSLATION
9. TERMINATION
10. FUTURE REVISIONS OF THIS LICENSE
0 of .
Results for:
No results containing your search query
P. 1
Ada Programming

Ada Programming

Ratings: (0)|Views: 9 |Likes:
Published by João Rodrigues

More info:

Published by: João Rodrigues on Nov 07, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/07/2011

pdf

text

original

You're Reading a Free Preview
Pages 5 to 70 are not shown in this preview.
You're Reading a Free Preview
Pages 75 to 107 are not shown in this preview.
You're Reading a Free Preview
Pages 112 to 146 are not shown in this preview.
You're Reading a Free Preview
Pages 151 to 154 are not shown in this preview.
You're Reading a Free Preview
Pages 159 to 242 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->