Friday 21 November 2014

COMPILER DESIGN LABORATORY PROGRAMS AND HOW TO COMPILE LEX AND YACC (Windows & Linux)

COMPILER DESIGN LABORATORY PROGRAMS


1. Lex and Yacc
2. Operator Precedence Parser
3. Token Separation aka Lexical analysis
4. Symbol table implementation
5. Shift reduce parser
6. Pass 1 of assembler implementation in C

[ALL THE ABOVE PROGRAMS ARE TESTED AND WORKING]



HOW TO COMPILE LEX AND YACC?

IN WINDOWS (SOURCE)=>

Installing Softwares:

Download Flex 2.5.4a
Download Bison 2.4.1
Download DevC++
Install Flex at "C:\GnuWin32"
Install Bison at "C:\GnuWin32"
Install DevC++ at "C:\Dev-Cpp"
Open Environment Variables.
Add "C:\GnuWin32\bin;C:\Dev-Cpp\bin;" to path.

Compilation & Execution of your Program:

Open Command prompt and switch to your working directory where you have stored your lex file (".l") and yacc file (".y")

Let your lex and yacc files be "hello.l" and "hello.y". Now, follow the preceding steps to compile and run your program.

For Compiling Lex file only:

flex hello.l
gcc lex.yy.c

For Compiling Lex & Yacc file both:

flex hello.l
bison -dy hello.y
gcc lex.yy.c y.tab.c

For Executing the Program


a.exe


VISIT SITE - SOURCE 

IN LINUX =>

TO INSTALL LEX AND YACC

Open terminal and type: 

$sudo -s

You will be asked to enter your password

then,

$sudo apt-get install flex (this installs lex)
$sudo apt-get install bison (this installs yacc)

You will be shown something like


"do you want to install these packages? press "y". Hit enter.

[NOTE - Installation requires Internet connection.]

COMPILE AND RUN

ONLY LEX


1.lex filename.l
2.gcc lex.yy.c
3. ./a.out

Instruction to run lex and yacc program

1.lex filename.l
2.yacc -d filename.y
3.gcc lex.yy.c y.tab.c -ll

4. ./a.out

[NOTE - yacc program doesn't work without lex program]


EXAMPLE - Running a Simple Lex Program 




EXAMPLE 2 - Running Calculator Program (Includes both LEX AND YACC)


If you have any other queries ask in Comments below.





Friday 24 January 2014

ASSIGNMENT 1 - PQT, CN

Probability and queuing theory - Assignment 1

Computer Networks - Assignment 1

TECHNICAL EVENTS - 14/01/2014


·        Srishti v7.0-PSG college of technology-Coimbatore


Date of Function:Feb 15th 2014
Event Details :



paper presentation
project presentation
technical quiz
photography
clowning
Electro auction
ones and zeros



Workshops : Robotics and industrial automation Advanced Matlab



Co-coordinator : Ganaesamanian
Contact : 9489052425
mail id : psgtechsrishti@gmail.com
Registration fee : 100/-
Email id:psgtechsrishti@gmail.com



 

·        E-SYNERGIA '14-DHANALAKSHMI SRINIVASAN INSTITUTE OF TECHNOLOGY-Trichy 621 112-ECE AND CSE


Date of Function: 27th February 2014.
1.Name of The Event: E-SYNERGIA '14
National Level Students Technical Symposium
2.College Name: DHANALAKSHMI SRINIVASAN INSTITUTE OF TECHNOLOGY,NH – 45, Trichy – Chennai Trunk Road, Samayapuram, Trichy 621 112
3.Department: ECE AND CSE
4.Event Details:(About your Event Description,Scope, Objective, Papers Topics):
The students Association of Computer Science & Electronics and Communication Engineering departments of our college, is organizing a National level Students’ Technical Symposium, E-SYNERGIA ’14 on 27th February 2014. It provides platform to the budding engineers to share and learn their views on the recent trends in the above said fields.
CSE:



Topics for paper presentation:
1.Advanced Database systems
2.Network Security
3. Recent trend in computer technology
Other Events:
1.Multimedia presentation
2.Instant Speech
3.Technical Quiz



5.Date of Event: 27.02.2014
6.Important Dates: Paper Submission Last Date: 12.02.2014
Intimation of Acceptance: 15.02.2014
7.Contact Details:
symposium.ece@dsit.ac.in   symposium.ece@dsit.ac.in
5.Registration Fee: NIL


·        Uddeshah'14-Dr.Mahalingam College of Engineering & Technology, Pollachi -CSE, IT, MCA, CIVIL, MECH, AUTO, EEE, ECE, E&I, ICE


Date of Function: Feb 20,21,22 - 2014. 


1.Name of The Event: Uddeshah'14
2.College Name: Dr.Mahalingam College of Engineering & Technology, Pollachi
3.Department: CSE, IT, MCA, CIVIL, MECH, AUTO, EEE, ECE, E&I, ICE
4.Event Details:(About your Event Description,Scope, Objective, Papers Topics):
A National level technical symposium @ Dr.Mahalingam College of Engineering &
Technology, which is waiting to unlock the talents within thyself.
5.Date of Event: Feb 20,21,22 - 2014
6.Important Dates: Last date to register 12 Feb 2014
Date of intimation 15 Feb 2014
7.Contact Details: M.Anand Zoey 9994999944
8.Registration Fees: Rs.50/head
Email id:uddeshah@mcet.in

·        CYBERSPRINT 2014-GR Govindarajulu School of Applied Computer Technology, PSGR Krishnammal College for Women.-MCA


Date of Function: 14 February 2014

1. Name of the Event: Cybersprint 2014
2. College Name: GR Govindarajulu School of Applied Computer Technology, PSGR Krishnammal College for Women.
3. Department: MCA
4. Event Details:

DASTERLLUNG-VOKABEL (GOOGLING)

• Each participating institute may nominate a team of 2 students per team.
• Preliminary round will be based on questions related to web browsers and search engines.
• Students participating in this contest will not be permitted to participate in any other events. INTERROGER (TECHNICAL QUIZ)
• Each participating institute may nominate a team of 2 students per team.
 Preliminary round will be based on questions from recent IT trends.
• Students participating in this contest will not be permitted to participate in any other events MOBILE APPLICAZIONE (MOBILE APPS DEVELOPMENT)
• Each participating institute may nominate a team of 2 students per team.
• Participants should come prepared with their mobile apps in their own devices.
• Presentation and demonstration should be given during the event.
• Students participating in this contest will not be permitted to participate in any other events. MARVILLA (SURPRISE EVENT)
• Each participating institute may nominate a team of 3 students per team.
• Preliminary round will be based on questions from brainteasers.
• Students participating in this contest will not be permitted to participate in any other events ANIMATED MOVIE MAKING (ANIMAZIONE-FILMARE)
• Each participating institute may nominate a team of 2 students per team.
• Participants should come prepared with their movies in their own devices.
• The length of the movie is about 8 - 10 min and the file should be in .avi format.
• CD’s of movies should be submitted on or before 12th February,2014.
• Students participating in this contest will not be permitted to participate in any other events
5. Date of Event: 14 February 2014
6. Important Dates: Registration should be done on or before 12 February 2014.
7. Contact Details:
Faculty Coordinator: Ms. S Gayathri(+91 422 429 5959, Extn.136)
Student Coordinator: Ms. Srishti Janawa(8608694041)
8. Registration Fees: No Registration Fees.


·        Techfest-2K14-AUTO / CSE / ECE / EEE / IT / MECH & MCA - Paavai College of Engineering- Namakkal

·        Date of Function:13th &14th - February 2014

College: Paavai College of Engineering
Name of the Symposium/Conference Details: Techfest2k14
Date of Event: 13th &14th –February 2014
Events:



1.Paper presentation
2.Circuit Debugging
3.Code Debugging
4.Multimedia
5. Technical Marketing
6. CAD Contest
7. Event Manager and more...



Important Dates:
Last date for Submission: 03.02.2014
Intimation: 07.02.2014
Confirmation: 08.02.2014
Registration Fee: NIL
Contact:



The Convenor,
Techfest-2k14,
Paavai College of Engineering,
Pachal, Namakkal-637018.
Mobile: 9842019288 /9842326088
E-Mail: techfest2k14ece@paavai.edu.in
techfest2k14eee@paavai.edu.in
techfest2k14cse_it_mca@paavai.edu.in



techfest2k14mech@paavai.edu.in


·        DIGITALK’14-KUMARAGURU COLLEGE OF TECHNOLOGY ,COIMBATORE-641    049-DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

Date of Function: FEB 7, 2014
Event Details:



• Paper Presentation
• Poster Presentation
• Project Presentation
• Test Ronics (Circuit Debugging)
• Robotic Loops (Line Follower)
• Fox Hunt
• Code Breaker
• Best Manager
• Gaming
• Exciting Fun And Spot Events



Date Of Events : Feb 7, 2014
Important Dates : Jan 27, 2014(Last Date For Paper And Project Submission)
Contact Details:
B.V.Gajendra Bangaru - 9626970701
S.Santhosh Kumar – 8903423595


·        Genesis 2K14-NANDHA ENGINEERING COLLEGE(Autonomous),ERODE-52.-ELECTRONICS AND COMMUNICATION ENGINEERING

Date of Function: January 31st & February 1st - 2014.
1.Name of The Event: NATIONAL LEVEL TECHNICAL SYMPOSIUM (Genesis 2K14).
2.College Name : NANDHA ENGINEERING COLLEGE(Autonomous),ERODE-52.
3.Department : ELECTRONICS AND COMMUNICATION ENGINEERING
4.Event Details :(About your Event Description,Scope, Objective, Papers Topics):
PAPER PRESENTATION
Description:



v Papers will be short-listed.
v Presentation should be done in ppt.
v Presentation will be followed by query sessions.

 

Protocols:



v Maximum 2 authors per paper.
v Ten minutes for presentation & three minutes for technical discussion.
v Candidates have to send two hard copies & one soft copy (not exceeding 10 pages).
v Font size:12(Times New Roman)



Paper Presentation Topics :
v



Robotics
v Nano Technology v VLSI/Embedded Systems
v Biomedical Instrumentation
v Neural Networks/Fuzzy Logic
v Digital Signal/Image Processing
v Wireless And Optical Communication




POSTER PRESENTATION
Description:
v Participants will be informed earlier about the topic to be presented. They are expected
to present their poster in A3 or A2 size colour printout.
Protocols:
v Maximum 2 members/team
v Abstract and soft copy should be sent through mail.
PROJECT EXPO'2K14
Protocols:
v Maximum 4 members per batch.
v Project description should be sent through mail.
TREASURE HUNT
Description:
In this group event, participants are given 10 clues. The first clue is free, the solving of the second  clue and so on continues until a significant object is found by solving the final clue.
Protocols:
v Maximum 4 members per team
OTHER EVENTS



v Ad zap
v Funny buss
v Mr. Engineer
v Multimedia
v Technical quiz
v Genius in GENESIS




PROPEL TO:



The Convener,
Genesis 2k14,
Department Of ECE,
Nandha Engineering College,
Vaikkalmedu,
Erode-638052.




5.Date of Event : January 31st
6.Important Dates : SUBMISSION DATE - 22/01/2014
INTIMATION DATE - 25/01/2014 & February 1st - 2014
7.Contact Details : 9500963302,9524952495.
8. E-mail : ecegenesis2k14@gmail.com
9.Registration Fee : Rs 100 for each participants.


·        Kurukshetra 2014-CEG-ANNA UNIVERSITY-CHENNAI

Date of Function: JAN 29-FEB 01,2014.
DESCRIPTION:Eco-friendly buildings that are sustainable are the need of the hour with increasing environmental concerns. We at Kurukshetra are proud to present you the workshop "Build it like Baker", an exclusive opportunity to learn the art of sustainable construction.
CONTACT: kowshik:
8903438086

·        A National Level Technical Symposium @ Coimbatore Institute Of Technology Affiliated To Anna University “Interface 2014” Organized By Department Of Computer Science

·        Date of Function: 24th & 25th JANUARY 2014
EVENTS:



·        Technical Events
Non Technical Events
Gaming events
Management Events
Paper presentations
Workshops



EVENT DATE: 24th &25th
PAPER SUBMISSION LAST DATE: JANUARY 14, 2014
CONTACT US



Praveen G (Chairman)
mail:chairman@interfacecit.com
+917708707039
Yokeshwaran B(Treasurer)
mail:yokesh@interfacecit.com
+91887074690

      
REVOZO14-Kumaraguru College Of Technology,Coimbatore-49-Information Technology


            Date of Function: Jan24,2014.
1.Name of The Event: REVOZO'14
2.College Name: Kumaraguru College Of Technology,Coimbatore-49
3.Department: Information Technology
4.Event Details:



Sandbox(Online Treasure Hunt)-http://sandbox.revozo.in
Tussle of Thoughts(Paper Presentation)
Appy Fizz(APP presentation)
Chakravugh(For Engineering Managers)
Tech Trinity(3 problems,3 platform,3 Language)
Compfusion(Concentrate on Coding!!)
Street War'z(Gamer''s Zone)
Curve Ball(Fun Time!!)
Brain Run(All About GK)



5.Date of Event: Jan24(Symposium)
6.Important Dates: 13-01-2014(paper submission Last Date&APP submission last Date)
7.Contact Details:
Sassi Kesavan-9486365198
Naveen Krishnan-9600228843
8.Registration Fee:100

 



Mindkraft

A Celeberation of Technical Evolution. Hosted by : Karunya feb 26,27,28
Avinashilingam Institute for Home Science and Higher Education for Women, University ,Department of Computer Science CYBRO’Z 14-jan 24