LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-01-2008, 05:56 AM   #1
aashish
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
yacc grammar and its corresponding lex specification for designing C Compiler


hi , i am doing project on designing C Compiler in linux.
can I get yacc grammars for designing C Compiler and its lex specification.......

also I want code of C Compiler which can compile C programs...
 
Old 10-02-2008, 03:52 PM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Hey, you probably need the dragon book set about compiler design.

First, welcome to LQ!

Try these to start with:
1. http://www.ibm.com/developerworks/li...l?dwzone=linux
And check the link section on the *left* side

2. http://epaperpress.com/lexandyacc/
3. http://www.angelfire.com/dragon/lets...ler/index.html

Note: And one more thing, you'd get better response by posting in the proper forum. I guess this should go in "Linux - Programming" and please avoid reposting (I'm telling you before a Mod does that ).

Last edited by SkyEye; 10-02-2008 at 03:57 PM.
 
Old 10-02-2008, 09:32 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Go look at a compiler. There are lots of them out there, some student-oriented and some (like gcc itself) purely oriented toward professional use.

To me, "an example is worth a thousand books."
 
Old 10-14-2008, 01:12 AM   #4
aashish
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
hi.......
I am not getting yacc grammars for designing C Compiler...........

plzzzzzzzzzz can anyone getit.....

i want to design a parser which wil parse C programs in linux using lex and yacc tool
 
Old 10-14-2008, 02:22 AM   #5
rgerhards
Member
 
Registered: Sep 2003
Distribution: Fedora/Debian
Posts: 50

Rep: Reputation: 15
Quote:
Originally Posted by aashish View Post
hi.......
I am not getting yacc grammars for designing C Compiler...........

plzzzzzzzzzz can anyone getit.....

i want to design a parser which wil parse C programs in linux using lex and yacc tool
I think there were ample references. You should now do you homework Read the dragon book, and look, maybe, at GCC. Not sure if it contains a yacc parser.

Which work did you do before? It is quite uncommon to start with a beast as complex as a full C grammar...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does ubuntu have lex and yacc,how to use them?? akshay_jp Linux - Software 4 05-26-2010 06:36 PM
designing C Compiler in linux.lexical analysis is done through lex and yacc tool aashish Linux - Software 2 09-25-2008 10:42 AM
LEX and YACC with C gr33ndata Programming 4 11-18-2007 05:12 PM
Implementing yacc/lex Millenniumman Programming 2 10-07-2006 10:49 AM
lex and yacc tools ? vagrahb Programming 4 05-19-2006 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration