C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
need some information.plzzz Posted by lynzkie on 7 Sept 2006 at 11:01 AM
my prof. wants us to write a lexical analyzer. the design of the lexical analyzer as a function which can return a quadraple (tokentype, attributevalue, linenumber and line position)..how to design a driver program in which reads the name of the file which holds a sample program of c prog lang, and prints te tokens of this sample program into another file.
Report
Re: need some information.plzzz Posted by Lundin on 7 Sept 2006 at 11:19 PM
: my prof. wants us to write a lexical analyzer. the design of the lexical analyzer as a function which can return a quadraple (tokentype, attributevalue, linenumber and line position)..how to design a driver program in which reads the name of the file which holds a sample program of c prog lang, and prints te tokens of this sample program into another file.
:


Eh... alright. Did you have a question?
Report
Re: need some information.plzzz Posted by lynzkie on 8 Sept 2006 at 2:37 AM
how to design a driver program in which reads the name of the file from the an another program?


Report
Re: need some information.plzzz Posted by Lundin on 8 Sept 2006 at 3:07 AM
: how to design a driver program in which reads the name of the file from the an another program?
:


It is not clear what you mean.

What is "a driver program"?

What is "a sample program"?

What do you mean with "file from another program"? A text file generated by another program, or the .exe file of the other program, or since you say C language - the source code itself?
Report
Re: need some information.plzzz Posted by lynzkie on 8 Sept 2006 at 3:31 AM
is a toy programming language the same with C prog. lang?
honestly im not familiar with this type of programming lanuage (Toy programmning language).?
Report
Re: need some information.plzzz Posted by Lundin on 8 Sept 2006 at 4:28 AM
: is a toy programming language the same with C prog. lang?
: honestly im not familiar with this type of programming lanuage (Toy programmning language).?
:


Umm... a "toy programming language" is a term for limited languages like VB and similar. C is most definitely not a toy language. But what has this to do with the question?
Report
Re: need some information.plzzz Posted by IDK on 8 Sept 2006 at 7:55 AM
: : is a toy programming language the same with C prog. lang?
: : honestly im not familiar with this type of programming lanuage (Toy programmning language).?
: :
:
:
: Umm... a "toy programming language" is a term for limited languages like VB and similar. C is most definitely not a toy language. But what has this to do with the question?
:

If I the OP right, he wants us to help him with a lexical scanner homework, that reads and tokenizes some C code.

Since we wont do your homework, ask your professor



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.