Ada How was Ada conceived. The language, not the lady.

Slides:



Advertisements
Similar presentations
Programming Languages and Paradigms
Advertisements

Statement-Level Control Structures
Adapted from Scott, Chapter 6:: Control Flow Programming Language Pragmatics Michael L. Scott.
Programming Languages and Paradigms The C Programming Language.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
1 Copyright © 1998 by Addison Wesley Longman, Inc. Chapter 13 In a language without exception handling: When an exception occurs, control goes to the operating.
Elementary Data Types Prof. Alamdeep Singh. Scalar Data Types Scalar data types represent a single object, i.e. only one value can be derived. In general,
Gary MarsdenSlide 1University of Cape Town Statements & Expressions Gary Marsden Semester 2 – 2000.
1 Languages and Compilers (SProg og Oversættere) Sequence control and Subprogram Control.
ISBN Chapter 11 Abstract Data Types and Encapsulation Concepts.
© Alan Burns and Andy Wellings, 2001 Programming in the Small n Aim: to remind you how to read/write programs in Ada 95, Java and ANSI C n Practicals will.
High-Level Programming Languages
ISBN Chapter 9 Subprograms. Copyright © 2006 Addison-Wesley. All rights reserved.1-2 Introduction Two fundamental abstraction facilities.
Encapsulation by Subprograms and Type Definitions
CS-341 Dick Steflik Introduction. C++ General purpose programming language A superset of C (except for minor details) provides new flexible ways for defining.
1) Causes of errors 2) Classification of errors 3) Signals and exceptions 1) Program hierarchy 2) Blocks 3) Routines 4) Procedures and functions COMP205.
VHDL. What is VHDL? VHDL: VHSIC Hardware Description Language  VHSIC: Very High Speed Integrated Circuit 7/2/ R.H.Khade.
© Alan Burns and Andy Wellings, 2001 Programming in the Small Aim: to remind you how to read/write programs in Ada 95, Java and ANSI C.
Abstract Data Types and Encapsulation Concepts
C++ fundamentals.
Sequence Control Chapter 6. 2 l Control structures: the basic framework within which operations and data are combined into programs. Sequence control.
1 Exception Handling Introduction to Exception Handling Exception Handling in PLs –Ada –C++ –Java Sebesta Chapter 14.
May 21, ICE 1341 – Programming Languages (Lecture #21) In-Young Ko Programming Languages (ICE 1341) Lecture #21 Programming Languages (ICE 1341)
Ceg860 (Prasad)L6MR1 Modularity Extendibility Reusability.
Porting Implementation of Packet Utilization Standard from ADA to JAVA Annelie Hultman (TEC-EME) Donata Pedrazzani (TEC-EMS) ESA/ESTEC 2004 JPUS de-briefing.
Programming Language C++ Xulong Peng CSC415 Programming Languages.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
CPS120: Introduction to Computer Science Decision Making in Programs.
ISBN Chapter 14 Exception Handling and Event Handling.
C# EMILEE KING. HISTORY OF C# In the late 1990’s Microsoft recognized the need to be able to develop applications that can run on multiple operating system.
Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL – Basic Language Elements  Identifiers: –basic identifier: composed of a sequence of one or more.
Control Structures sequence of execution of high-level statements.
3. Controlling Program Flow Methods, parameters, and return values Boolean expressions Conditional branching Loops.
MT311 Java Application Development and Programming Languages Li Tak Sing( 李德成 )
ISBN Chapter 11 Abstract Data Types and Encapsulation Concepts.
Ch Ch jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes, notes, notes) Dr. Carter Tiernan.
Topics AliasesSubprograms Generics & Configurations.
Theory of Programming Languages Introduction. What is a Programming Language? John von Neumann (1940’s) –Stored program concept –CPU actions determined.
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
Chapter 8 High-Level Programming Languages. 2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
16/11/2006DSD,USIT,GGSIPU1 Packages The primary purpose of a package is to encapsulate elements that can be shared (globally) among two or more design.
 In the java programming language, a keyword is one of 50 reserved words which have a predefined meaning in the language; because of this,
13-1 Chapter 13 Concurrency Topics Introduction Introduction to Subprogram-Level Concurrency Semaphores Monitors Message Passing Java Threads C# Threads.
04/26/20031 ECE 551: Digital System Design & Synthesis Lecture Set : Introduction to VHDL 12.2: VHDL versus Verilog (Separate File)
VHDL Discussion Subprograms IAY 0600 Digital Systems Design Alexander Sudnitson Tallinn University of Technology 1.
Higher Computing Software Development -So Far- 5/10/10.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 8 Java Fundamentals Control Structures Fri.
Essential Ada Terminology copyright © Michael B. Feldman, All Rights Reserved.
© 2006 Pearson Addison-Wesley. All rights reserved 1-1 Chapter 1 Review of Java Fundamentals.
Ada, Scheme, R Emory Wingard. Ada History Department of Defense in search of high level language around Requirements drafted for the language.
C# Fundamentals An Introduction. Before we begin How to get started writing C# – Quick tour of the dev. Environment – The current C# version is 5.0 –
Conditional Statements A conditional statement lets us choose which statement will be executed next Conditional statements give us the power to make basic.
Exception Handling and Event Handling
CMP 339/692 Programming Languages Day 24 Tuesday May 1, 2012
by Dharani Pullammagari
Design Goals Programs reliability and maintenance is important
Exception Handling and Event Handling
UNIT - V STORED PROCEDURE.
Chap. 6 :: Control Flow Michael L. Scott.
Abstract Data Types and Encapsulation Concepts
Chap. 6 :: Control Flow Michael L. Scott.
Final Review In Text: Chapters 1-3, 5-12,
Final Review In Text: Chapters 1-3, 5-16.
Final Review In Text: Chapters 1-3, 5-16.
Languages and Compilers (SProg og Oversættere)
Final Review In Text: Chapters 1-3, 5-16.
Final Review In Text: Chapters 1-3, 5-16.
Presentation transcript:

Ada How was Ada conceived. The language, not the lady

Basic History 1970’s United States DoD decided to upgrade their entire software systems. Programming competition with a strict set of requirements held. Team from France led by Jean Ichbiah wins competition and created a new High level language. Team names Language “Ada” after Lady lovelace( ) versions: Ada82, Ada85, Ada2005, Ada 2012,

A first Look One of the more flexible high level languages. Ada uses a procedure with no parameters. BEGIN and END defines the body of the procedure Sixty nine reserve words Operator symbols: =,/=,. =,&,+,-,/,* Non symbol operators: and,or,xor,not,abs,rem,mod

Data Types Ada83 has no predefined inheritance hierarchy Ada allows you to define your own types and create new types. Enumerations types- Boolean values which are only True or False; NOT numeric types. Modular types- ex.: Type byte is mod 2**8; Composite types- Record types are very similar to a struct in C. Task types-concurrent thread of execution. Other types include: Scalar types, access types, fixed/floating point types.

Loops For loops are relatively simple in every languages One of fundamental building blocks of any program is iteration. For loops can be used to traverse a 2-d arrays. The simplest loop is an unconditional loop…

Conditional statements The if statement: condition must always evaluate to a Boolean value; Case statements: No need to explicitly break at the end of each case. Avoid GoTo statements!!(unconditional statement)

subprograms Ada provides two kinds of subprograms Procedures never return a value… There are 3 passing modes for procedure parameters… Functions always return a value… Function parameters can only have the IN mode

Packages are all around us. The primary structure used for encapsulation is called a package. Used to group data and subprograms Usually consist of two parts, the specification and a package body. The package specifications… The package body…

A Very OOP language Created in the Ada95 version. Also brought inheritance to Ada… Derivation is used to let a new type inherit. Type extension is a direct link to type derivation… Extensible types aka tagged types..

Polymorphism When the compiler processes a function…. Polymorphic behavior must be elicited within parameterized procedure.. Ada triggers polymorphic behavior through…

Exception Handling There are 5 predefined exceptions: CONTSTAINT_ERROR NUMERIC_ERROR PROGRAM_ERROR STORAGE_ERROR TASKING_ERROR What happens if there is no exception handler?

Concurrency Two models for concurrency: Tasking is implemented using Ada syntax. Each task is a sequential entity that may operate concurrently with and communicate with other tasks. Once a task is created and activated…