943,816 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1035
  • C RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 26th, 2009
0

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

Expand Post »
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............
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shou2009 is offline Offline
3 posts
since Feb 2009
Jul 26th, 2009
0

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

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
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Jul 26th, 2009
0

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

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?".
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jul 26th, 2009
0

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

Click to Expand / Collapse  Quote originally posted by Salem ...
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shou2009 is offline Offline
3 posts
since Feb 2009
Jul 26th, 2009
1

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

Show us your code work.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jul 27th, 2009
0

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

must not be too urgent.

you havent given us anything to review.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008
Jul 27th, 2009
0

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

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.
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006
Jul 27th, 2009
0

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

Click to Expand / Collapse  Quote originally posted by ithelp ...
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 Nick Evan; Jul 27th, 2009 at 8:01 am.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Jul 27th, 2009
0

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

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.
Reputation Points: 431
Solved Threads: 17
Posting Whiz in Training
Hiroshe is offline Offline
255 posts
since Jun 2008
Jul 27th, 2009
2

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

> 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).
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: HELP
Next Thread in C Forum Timeline: SHA-1 in C





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC