algol report

Upload: jolyne-pereyra-conde

Post on 04-Jun-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Algol Report

    1/30

    ALGOL

    ALGOL 58, ALGOL 60 and

    ALGOL 68

  • 8/13/2019 Algol Report

    2/30

    HISTORY

    ALGOL was developed jointly by a committee of European and Amcomputer scientists in a meeting in 1958 at Zurich

    ALGOL (ALGOrithmic Language)

    First formalized in a report titled ALGOL 58

    Progressed through reports named ALGOL 60

    ALGOL 68. It was designed by an international committee to be a unlanguage.

  • 8/13/2019 Algol Report

    3/30

    ALGOL 58

  • 8/13/2019 Algol Report

    4/30

    HISTORY ALGOL 58

    Released in December 1958 with great reception.

    Americans look at it as a collection of languages instead of an universal lan

    Inspired three majordesigns:

    MAD-Michigan Algorithmic DecoderNELIAC-Navy Electronics Laboratory International ALGOL Compiler

    JOVIAL-Jules Own Version International Programming Algorithmic Lan Used by U.S Air Force by Jules I.Schwart.

  • 8/13/2019 Algol Report

    5/30

  • 8/13/2019 Algol Report

    6/30

    Three different syntaxes

    reference syntax publication syntax implementation syntax.

  • 8/13/2019 Algol Report

    7/30

    Design Process

    Syntax should be as close as possible to standard scientific notation. Readable. Easy to learn and easy to understand. Simplicity for periodical publications describing the computing proc Programs should be mechanically translatable into machine language

  • 8/13/2019 Algol Report

    8/30

    3 Complication of Algol 58

    developing new compilers

    training new personnel

    motivate people to a new language

  • 8/13/2019 Algol Report

    9/30

    ALGOL 60

  • 8/13/2019 Algol Report

    10/30

    ALGOL 60

    ALGOL 60 (short for ALGO rithmic Language 1960 ) is a member of the ALGOLof computer programming languages. It gave rise to many other programming languages, including:

    BCPL B PASCAL Simula C

    ALGOL 60 was the first language implementing nested function definitions with lscope.

  • 8/13/2019 Algol Report

    11/30

    ALGOL 60 Reserved words and restricted identifiers

    There are 35 such reserved words in the standard Burroughs large systems sub-lan

    ALPHA

    ARRAY

    BEGIN

    BOOLEANCOMMENT

    CONTINUE

    DIRECT`

    DO

    DOUBLE

    ELSE

    ENDEVENT

    FALSE

    FILE

    FOR

    FORMAT

    GO

    IFINTEGER

    LABEL

    LIST

    LONG

    OWN

    POINTER

    PROCEDUREREAL

    STEP

    SWITCH

    TASK

    THEN

    TRUE

    UNTIL VALUE

    WHILE

    ZIP

  • 8/13/2019 Algol Report

    12/30

    There are 71 such restricted identifiers instandard Burroughs large systems sub-lang

    ACCEPT

    AND

    ATTACH

    BY

    CALL

    CASE

    CAUSE

    CLOSE

    DEALLOCATE

    DEFINE

    DETACH

    DISABLE

    DISPLAY

    DIV

    DUMP

    ENABLE

    EQL

    EQV

    EXCHANGE

    EXTERNAL

    FILL

    FORWARD

    GEQ

    GTR

    IMP

    IN

    INTERRUPT

    IS

    LB

    LEQ

    LIBERATE

    LINE

    LOCK

    LSS

    MERGE

    MOD

    MONITOR

    MUX

    NEQ

    NO

    NOT

    ON

    OPEN

    OR

    OUT

    PICTURE

    PROCESS

    PROCURE

    PROGRAMDUMP

    RB

    READ

    RELEASE

    REPLACE

    RESET

    RESIZE

    REWIND

    RUN

    SCAN

    SEEK

    SET

    SKIP

    SORT

    SPACE

    SWAP

    THRU

    TIMES

    TO

    WAIT

    WHEN

    WITH

    WRITE

  • 8/13/2019 Algol Report

    13/30

    ALGOL SAMPLE CODE

    BEGIN

    FILE F (KIND=REMOTE);

    EBCDIC ARRAY E[0:11];

    REPLACE E BY HELLO WORLD !; WRITE(F, *, E);

    END .

  • 8/13/2019 Algol Report

    14/30

    A SIMPLIER PROGRAM USING INLIN

    FORMAT:BEGIN

    FILE F (KIND=REMOTE);

    WRITE(F, );

    END.

  • 8/13/2019 Algol Report

    15/30

    SIMPLIER PROGRAM USING THE

    DISPLAY STATEMENTBEGIN DISPLAY(HELLO WORLD!) END.

  • 8/13/2019 Algol Report

    16/30

  • 8/13/2019 Algol Report

    17/30

  • 8/13/2019 Algol Report

    18/30

    Is an imperative computer programminglanguage that was conceived as a successor tothe ALGOL 60 programming language, design

    with the goal of a much wider scope of applicand more rigorously defined syntax and seman

  • 8/13/2019 Algol Report

    19/30

    Its features include expression-based syntaxuser-declared types and structures/tagged-unioreference model of variables and referenceparameters, string, array and matrix slicing, anconcurrency.

    was designed by IFIP Working Group 2.1

  • 8/13/2019 Algol Report

    20/30

  • 8/13/2019 Algol Report

    21/30

  • 8/13/2019 Algol Report

    22/30

    In 1970, ALGOL 68R became the first working compiler for ALGOL 68 .

    In the 1973 revision, certain features - suchas proceduring, gommas and formalbounds - were omitted .

  • 8/13/2019 Algol Report

    23/30

    Operating Systems written in ALGOL 6

    Cambridge CAP computer Eldon 3

    Flex machine VME

  • 8/13/2019 Algol Report

    24/30

    Program representation

    Representation language - used to describe algorithms in p work

    Strict language - rigorously defined in the Report Reference language - intended to be used in actual compile

    input.

    int a real int = 3 ;

  • 8/13/2019 Algol Report

    25/30

    Stropping regimes - methods to denote identifiers

  • 8/13/2019 Algol Report

    26/30

    The basic datatypes (called modes in Algol 68

    parlance) are :>Real>Int>compl (complex number)

    >Bool>Char>bits and bytes.

  • 8/13/2019 Algol Report

    27/30

    Primitive-declarer:

    bits - a "packed vector" of bool. bytes - a "packed vector" of char.

    string - a flexible array of char. Sema - a semaphore which can be initialised w

    the operator level.

  • 8/13/2019 Algol Report

    28/30

  • 8/13/2019 Algol Report

    29/30

    Example:

    int max=99;

    mode newtype = [0:9][0:max] struct ( lreal a, b, c, short int i, j, k, ref real r );

  • 8/13/2019 Algol Report

    30/30

    THANK YOU!RAINNALYN CAPARAS

    KRISTINE DIANNE TECSON

    MARINEL NOCONHERMOGENES AMORES

    ADRIAN AMOR PEREYRA