Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI
i have written an compiler in c#.net but it is not finding or recognizing the errors such as int, if,return,double statements, if we remove any letter of them.
for example in int if i remove i then nt will be there and when we compile then it should show errors.
but i couldnt get.

please provide the code to recognize the keywords like
int,double if, else by the compiler.
Posted

This is not a homework service; no-one here will do your work for you.

Do not ask "Please provide the code to ..." as it shows your are not trying to help yourself. All you will get is ignored, abused, or told to try rentacoder (where they make you pay for software).

If you have a specific problem, ask about it. People will try to help.

If you actually want help to recognize the keywords, show us a small, relevant section of what you have (enclosed in <pre>...</pre> tags via the "code block" widget to preserve the formatting) and explain what your problem is. Do not post your whole app - nobody will read it!
 
Share this answer
 
p.saikrishna wrote:
i have written an compiler in c#.net


really? if so, congratulations are in order.
But somehow the remainder of your question makes me doubt that a little; I don't see how you could write a compiler while not being able to recognize keywords...

:)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900