Can anybody help me to do this program ?
Problem is to write a program which will take another program as a input & it'll give a program flow chart.
Ability of processing loops and if-else block would suffice. I can't understand where to start.

Recommended Answers

All 2 Replies

What sort of "help" did you have in mind?

Reading a file and outputting say
Found keyword "for"
found token "("
found identifier "i"
found token "="
etc would be a big step.

This isn't exactly a trivial task.

Hmmm seems like that need to implement a lexical and a syntax analyzer. Have a look at compiler design concept.

ssharish

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.