Results 1 to 5 of 5
  1. #1
    Optimus is offline Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Default Removing question mark

    Hello,

    My team is using Eclipse for developing some C programs, on a compiler which has some specific keywords. Therefore, Eclipse doesn't recognizes these words and reports them as a syntax error (question mark in yellow box, look at the picture.). I couldn't find any option/setting to turn this thing off, so I would like to add those couple of new words to Eclipse indexer/parser. Do you have any idea how could I do this? In which package are those things supported? Where do you think I need to look for? Any help would be much appreciated.

    Thank you in advance.

    P.S. This is what it looks like: http://img205.imageshack.us/img205/2...tionmarknj.jpg

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    I'm not an Eclipse use. So I just wonder that there is a version that compatible with C/C++ syntaxes, basically intellicense. In NetBeans you have to choose the correct version according to the development stream. So are you sure that you're using the suitable version?

  3. #3
    Optimus is offline Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Default

    Thank you for your reply. Maybe I haven't explained well enough. The thing is that this is some specific C compiler which has some unique keywords (built in types). Eclipse can't parse this well and complains about that. Basically, I was asking this: in which package of eclipse are basic C keywords are defined? Because, Eclipse's parser (or Indexer, I don't know), looks for definitions of keyword in the code of project and it's own "database". Since built in types are not defined in project code, it needs to be defined in eclipse's "database". I hope I was more accurate now. Regards :)

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Of course, now it's much clear. Actually I don't know much about to comment on that Optimus, I'm not using eclipse a lot. But seems to me, still it's related with intellicens. Any compiler parser the keywords based in the parser dictionary as intellicens. Anyway we'll see other eclipse users' comments here in our forum.

  5. #5
    Optimus is offline Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Default

    OK, I finally solved this thing, and I would like to post how I did it. The Eclipse package that parses C code is CDT, to be more accurate. org.eclipse.cdt.core. I've downloaded this code from CVS, and added couple more keyword in GCCKeywords.java file and GNUScannerExtensionConfiguration.java. Then you have to build project and then export to .jar and after that add to your_eclipse_installaton\plugins folder. Now, the yellow question marks are gone. Hope this helps someone.

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  2. Replies: 1
    Last Post: 02-12-2010, 02:50 PM
  3. how to mark as Correct or Wrong ?!
    By pinkdreammsss in forum New To Java
    Replies: 20
    Last Post: 05-21-2009, 11:52 AM
  4. Mark thread RESOLVED.
    By Eranga in forum Suggestions & Feedback
    Replies: 45
    Last Post: 04-02-2008, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •