lecture17 Ada1

lecture17 Ada1 - ADA I Design Goals of Ada From the Ada...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ADA I Design Goals of Ada From the Ada Language Reference Manual (LRM): "Ada was designed with three overriding concerns: program reliability and maintenance, programming as a human activity, and efficiency Of note is the sentence, also from the LRM: "Hence emphasis was placed on program readability over ease of writing" These design goals can be seen in the language. It has strong typing and enforceable abstractions which have shown to increase reliability and ease maintenance It eschews cryptic syntax for a more verbose English style for the sake of readability (readability, programming as a human activity). Also almost all constructs can be efficiently implemented Program Outline (1/2) A complete Ada program uses at least the four reserved words to define the beginning and end of each of the fields and they must come in the given order The program outline can be given as follows: procedure <program name> is <declarative part> begin <executable part> end <optional repeat of program name>; Program Outline (2/2) *: ADA95 Identifier (1/3) The rules for forming a valid identifier An identifier must start with a letter of the alphabet . Following the initial letter, the identifier can be made up of as many letters, numbers, and underlines as desired provided that the underlines occur only singly , and an underline is not the last character . Case of letters is not significant . There is no limit to the length of an identifier but each identifier must fit on one line of text and the writer of the compiler may impose a line length limit. The minimum line length must be at least 200 characters. No blanks or special characters can be used as part of an identifier. Identifier Exercise (2/3) Determine which one can be the identifier of Ada Ada ADA Ada_Compiler The_Year_1776 a1b2c3d4e5f6 12_times_each This__is__neat This is neat Ada_"tutorial" Identifier (3/3) Ada A perfectly valid identifier...
View Full Document

Page1 / 24

lecture17 Ada1 - ADA I Design Goals of Ada From the Ada...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online