C program needed...URGENT !!!!!

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2009
Posts: 2
Reputation: shou2009 is an unknown quantity at this point 
Solved Threads: 0
shou2009 shou2009 is offline Offline
Newbie Poster

C program needed...URGENT !!!!!

 
0
  #1
Jul 26th, 2009
Hello everybody, I need your help for my C project.....

The details of the program is given below :----

1) The input of the program will be another C program, and that is from a file.....( Please note this carefully)

2) You have to check the syntax of the code , i.e , whether " ," ";" are placed properly or not.....

3) You have to check whether the variables are properly declared or not....

4) Have to check the functions.....

So, if anyone of you can help me out of this trouble , I will be very grateful to him/her............
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: C program needed...URGENT !!!!!

 
0
  #2
Jul 26th, 2009
We only give homework help to those who show effort
Are these just empty words to you, or are you someone special deserving of free homework, where everyone else has to do it themselves?

Nor is it urgent (least not to anyone else)
http://www.catb.org/~esr/faqs/smart-...ns.html#urgent
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 500
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: C program needed...URGENT !!!!!

 
0
  #3
Jul 26th, 2009
Dear this is a forum. It is not a play-ground. First, one thing you must have to learn from your parents - "How to ask question?".
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 2
Reputation: shou2009 is an unknown quantity at this point 
Solved Threads: 0
shou2009 shou2009 is offline Offline
Newbie Poster

Re: C program needed...URGENT !!!!!

 
0
  #4
Jul 26th, 2009
Originally Posted by Salem View Post
We only give homework help to those who show effort
Are these just empty words to you, or are you someone special deserving of free homework, where everyone else has to do it themselves?

Nor is it urgent (least not to anyone else)
http://www.catb.org/~esr/faqs/smart-...ns.html#urgent
Ok, Ok, I am sorry..........
But, tell me one thing how can I prove that I my willingness ?
Last edited by shou2009; Jul 26th, 2009 at 10:32 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 500
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: C program needed...URGENT !!!!!

 
1
  #5
Jul 26th, 2009
Show us your code work.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,669
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 123
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: C program needed...URGENT !!!!!

 
0
  #6
Jul 27th, 2009
must not be too urgent.

you havent given us anything to review.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,857
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: C program needed...URGENT !!!!!

 
0
  #7
Jul 27th, 2009
Use lex , yacc , bison, etc. it is not that difficult , give it a try.
Last edited by ithelp; Jul 27th, 2009 at 7:46 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,968
Reputation: niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute 
Solved Threads: 308
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is offline Offline
Cenosillicaphobiac

Re: C program needed...URGENT !!!!!

 
0
  #8
Jul 27th, 2009
Originally Posted by ithelp View Post
Use lex , yacc , bison, etc. it is not that difficult , give it a try.
Tell me how this advice will help the op solves his(her) problem, I'm curious...
Last edited by niek_e; Jul 27th, 2009 at 8:01 am.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 255
Reputation: Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough 
Solved Threads: 16
Hiroshe's Avatar
Hiroshe Hiroshe is offline Offline
Posting Whiz in Training

Re: C program needed...URGENT !!!!!

 
0
  #9
Jul 27th, 2009
Load the file into memory. Scan the file for 1 type of error, print errors to the screen and scan for another type of error. Continue the process for each type of error. Making a perfect one would be vary hard, but if you only need to check for a few specific errors, it would be easy. For example, assuming that there is a new line after each semicolon except for lines that start with "#" would be easer than trying to find when a line is suppost to end.

Good luck.
Last edited by Hiroshe; Jul 27th, 2009 at 10:24 am.
"Sometimes, when I lie in bed at night and look up at the stars, I think to myself, "Man! I really need to fix that roof."-Jack Handy
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: C program needed...URGENT !!!!!

 
2
  #10
Jul 27th, 2009
> Tell me how this advice will help the op solves his(her) problem, I'm curious...
The OP is basically looking for the front end of a C compiler.
This is far from being a trivial problem.

lex / yacc / bison are parser generator tools (perfect for this problem).
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC