Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
24Activity
0 of .
Results for:
No results containing your search query
P. 1
COMPILER_Lab_Manual

COMPILER_Lab_Manual

Ratings: (0)|Views: 516 |Likes:
Published by api-3812391

More info:

Published by: api-3812391 on Nov 25, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

COMPILER CONSTRUCTION LAB
Submitted By :
Amit Garg
Index
\u2022
Introduction
\u2022
Phases Of Compiler
Program1: Design the Lexical Analyzer to split the file in to Tokens using C
Compiler.
Program2: Design the Lexical Analyzer to identify the
keywords in to the file using C Compiler.
Program3: Count the number of While loops and number of For
loops in a program using the Lexical Analyzer.
Program4: Count the number of IF conditions in a program using
the Lexical Analyzer.
Program5: Count the number of Variables present in a file with
data types using the Lexical Analyzer.
1
Introduction
What is a Compiler

Compiler is a program that reads a program written in one language \u2013 the source language \u2013 and translates it in to an equivalent program in another language \u2013 the target language. As an important part of this translation process, the compiler reports to its user the presence of errors in the source program.

Source
target program
Program
Error Message
The Analysis-Synthesis Model of Compilation

There are two parts to compilation: Analysis and Synthesis. The analysis part breaks up the source program into constituent pieces and creates an intermediate representation of source program. The synthesis part constructs the desired target program from the intermediate representation. Of the two parts, synthesis requires the most specialize technique.

Compiler

Activity (24)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
adddata liked this
amitkingh liked this
Jojo Cansino liked this
subramanyam62 liked this
akbisoi1 liked this
kumarsts liked this
Shamina Nazar liked this
Shamina Nazar liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->