My project want to write tokenizer which can able to tokenize input C code (already written C file input to the system) and identify what are the keywords, variables, comments, conditions etc. (all syntax provide by C). any one can help me to do this.
gayansameera 0
Newbie Poster
Recommended Answers
Jump to PostWhat have you done so far? We're not going to help you by doing it for you, but we'll be glad to help with any issues when you prove that you've make some kind of honest attempt.
Jump to PostI already finish scanning file line by line.
This is your first problem.
I write function to split sting using space.
This is your second problem.
You need to take the stream as a whole and recognize tokens as they come character by character. Why? Because the following is …
All 6 Replies
Narue 5,707
Bad Cop Team Colleague
gayansameera 0
Newbie Poster
Narue 5,707
Bad Cop Team Colleague
gayansameera 0
Newbie Poster
Narue 5,707
Bad Cop Team Colleague
gayansameera 0
Newbie Poster
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.