0

hi everyone...
im doing an ide for my project...
i need to check for errors while typing and must underline them ....
i need to do it for c,c++,java using java.....
i have no idea about this ....
can anyone please help me?????

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by britto
0

What kind of errors are you looking for ? The spelling mistake you feel the IDE user has made could be variable declaration. Also since a user is free to name his variable anything, until he obeys the language rules for it, you cannot even compare English spellings. What most IDEs offer is highlighting keywords, code completion etc. For this you would have to incorporate the entire library in your IDE for that langauge and offer a quick suitable solution. I am certain this should have some way of doing it in an optimized fashion, but don't know how, you'll need to google for it. For keywords you'll have to have an entire list of all the langauge keywords that you wish to support and on every keypress look for a matching keyword. To choose the list of keywords to check, you'll either have to depend on the filename extension the user selects or some way in which the user explicitly tells you what langauge he is using the IDE for.

0

it must be like static checking..
on googling i found that splint,lcint are used for static checking.....
a file must be given as an input to splint and the output will be the errors....
is there any way to bring it while typing....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.