LANGUAGE TRANSLATOR - Prof. Anand Gharu

Pune Vidyarthi Griha's

COLLEGE OF ENGINEERING, NASHIK.

" LANGUAGE TRANSLATOR "

By

Prof. Anand N. Gharu

(Assistant Professor) PVGCOE Computer Dept.

22nd Jan 2018

.

CONTENTS :-

1. Role of lexical analysis 2. Parsing, token, pattern, lexemes lex. Error 3. Regular def. for language construct & string 4. Sequences, comments & transition diagram for

recognition of tokens, reserved word & ident. 5. Introduction to Compiler & Interpreters 6. General model of Compiler 7. Compare compiler and interpreter 8. Use of interpreter & component of interpreter 9. Overview of Lex & YACC Specifications.

What's a compiler?

? All computers only understand machine language

This is a program

10000010010110100100101......

? Therefore, high-level language instructions must be translated into machine language prior to execution

3

What's a compiler?

? Compiler

A piece of system software that translates high-level languages into machine language

while (c!='x')

{

if (c == 'a' || c == 'e' || c == 'i')

printf("Congrats!");

else

program.c

if (c!='x')

printf("You Loser!");

}

Congrats!

Compiler gcc -o prog program.c

prog 10000010010110100100101......

4

Compiler

? Complier:-

? These are the system programs which will automatically translate the High level language program in to the machine language program

Source program High level Lang. Prog.

Compiler

Target program / M/C Lang. Prog.

Database

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download