Programming language
This presentation is the property of its rightful owner.
Sponsored Links
1 / 30

ภาษาโปรแกรม Programming Language PowerPoint PPT Presentation


  • 53 Views
  • Uploaded on
  • Presentation posted in: General

ภาษาโปรแกรม Programming Language. Introduction. Course outline. ผู้สอน : รัชดาพร คณาวงษ์ email : [email protected] office : ตึกวิทย์ 1 ชั้น 6 Telephone : 8711 หนังสือ Programming Language : Concepts & Constructs 2 nd Edition by Ravi Sethi, Addison-Wesley, 1996.

Download Presentation

ภาษาโปรแกรม Programming Language

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Programming language

Programming Language

Introduction


Course outline

Course outline

  • :

    • email : [email protected]

    • office : 1 6

    • Telephone : 8711

    • Programming Language : Concepts & Constructs 2nd Edition by Ravi Sethi, Addison-Wesley, 1996.

    • Concepts of Programming Languages 6th Edition by Robert W. Sebesta, Addison-Wesley, 2003.

  • 2


    Programming language

    Introduction

    The role of programming language

    Language Description : syntactic structure

    Imperative programming

    Statement : Structured programming

    Types : Data Representation

    Procedure Activations

    Object-Oriented Programming

    Functional Programming

    Logic Programming

    30%

    30%

    Assignments20%

    20%


    Programming language

    • (tool)

    • (high-level designs)

    • (notation for algorithms)

    4


    Von neumann architecture

    Von Neumann Architecture

    • 3 ,

    • 1

    • (Memory Address)

    5


    Programming language

    • Von Neumann

      • imperative conventional language : COBOL,FORTRAN,Pascal, C

    6


    Programming language

    7


    Programming language

    • (Computer Hardware and Operating System)

    • (Application)

    • (Programming Methods)

    • (Implementation Methods)

    • (Theoretical Study)

    • (Standardization)

    8


    Programming language

    • : Hardwired

    • :

    • (Hardware)

    9


    Levels of language in computing

    (Levels of Language in Computing)

    10


    Programming language

    • 1 : (Machine Language)

    • 2 : (Symbolic Language)

    • 3 : (High Level Language)

    11


    Programming language

    • Higher level

      • (readability)

      • (machine independence)

    • General purpose

    12


    Programming language

    code (program text)

    00000010101111001010

    00000010111111001000

    00000011001110101000

    10 11 12

    13


    Programming language

    (verbose)

    Assembly

    1: M[0] := 0;

    2: read(M[1])

    3: if M[1] > 0 then goto 5

    4: goto 7

    5: M[3] := M[0] - M[1];

    6: if M[3] > then goto 16

    7: writeln(M[1])

    8: read(M[2])

    9: M[3] := M[2] - M[1];

    10: if M[3] > then goto 12

    .

    .

    16: halt

    Program

    14


    Programming language

    Assembly

    code

    Assembler

    Object code

    15


    Programming language

    • (portability / machine independence)

    • (program libraries)

    • (error) (implementation)

    16


    Programming language

    3

    • 3 (3GL- Fourth General Language)

    • 4 (4GL- Fourth General Language)

    • 5 (5GL- Fourth General Language)

    17


    Programming language

    3

    • portable object code (compile)

    FORTANC

    COBOLC++

    BASICJava

    PascalActiveX

    18


    Programming language

    4

    • 3GL

    • text-based environment ( 3GL)

    • visual environment Prototype GUI

    Visual Basic (VB)

    VisualAge

    Authoring environments

    19


    Programming language

    5

    • (Artificial Intelligence) (Expert Systems)

    20


    Programming language

    • (Concept)

    • (Program Syntax)

    • (Application)

    • (Verification)

    • (Environment)

    • (Portability)

    • (cost)

    21


    Programming environments

    Programming Environments

    (Tools used in software development)

    • Unix

    • Borland C++

      • C C++ PC

    • Smalltalk

      • Language Processor/Environment

    • Microsoft Visual C++

      • visual environment

    22


    Programming language

    • (Needs analysis)

    • (System)

    • (Development)

    • (Implementation)

    • (Maintenance)

    23


    Programming domains

    Programming Domains

    • Scientific Application

    • Business Application

    • Artificial Intelligence

    • System Programming

    • Scripting Language

    • Special Purpose Language

    24


    Implementation methods

    Implementation Methods

    • Compilation

      • (translate)

      • (execute)

    • Interpreter

    • Hybrid Implementation

      • cost

    25


    Programming language

    Lexical analyzer

    Lexical units

    Syntax analyzer

    Parse tree

    Intermediate

    code generator

    Intermediate code

    Source

    program

    Source

    program

    Lexical analyzer

    Lexical units

    Syntax analyzer

    Parse tree

    Symbol

    table

    Intermediate

    code generator

    (and semantic analyzer)

    Optimization

    Intermediate code

    Input data

    Interpreter

    Code generator

    Machine language

    Computer

    Input data

    Results

    Results

    Pure Interpretation

    Compilation

    26

    Hybrid Implementation


    Language categories paradigms

    Imperative

    Object-Oriented

    Logic

    Functional

    Imperative

    Procedural :- C

    Block-Structured :-Pascal, Ada

    Object-based :- Ada

    Object-oriented :- Ada, Object-Pascal, C++, Java

    Parallel Processing :- Ada, Pascal-S, Occam, C-Linda

    Declarative

    Logic :- Prolog

    Functional :- LISP, Scheme

    Database :- SQL

    Language Categories (Paradigms)

    27


    Programming language

    1957

    58

    59

    60

    61

    62

    63

    64

    65

    66

    67

    68

    69

    70

    71

    72

    73

    74

    75

    76

    77

    78

    79

    80

    81

    82

    83

    84

    85

    86

    87

    88

    89

    90

    91

    92

    93

    94

    95

    Algol58

    Algol60

    SIMULA

    Algol W

    SIMULA67

    Algol68

    Pascal

    MODULA-2

    Smalltalk80

    Ada

    C++

    Oberon

    MODULA-3 ANSI C

    Eiffel

    Ada95 Java

    28


    Programming language

    • : (10%)

      • ()

        • http://directory.google.com/Top/Computers/Programming/Languages/

        • http://dir.lycos.com/Computers/Programming/Languages/ site

        • mail URL mail

        • 1 PDF format Cordia New 16

    29


    Programming language

    ()

    • ()

      • code compiler mailing list chat room

      • web site

  • : 20 2547 16.00 .

  • 30


  • Login