CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2008
    Posts
    5

    Need advice on developing an IDE

    Hi all,

    I am pretty green when it comes to developing software. That being said, I have been using some computer modeling software which has it's own "macro language." It says it is "like BASIC, but without some of the functionality." The language is clumsy and difficult to use effectively without memorizing the manual. I'd like to do a couple things to solve this:

    1. Create an IDE which has:
    a. "code completion" functionality (like IntelliSense I guess)
    b. debugging capabilities (syntax)

    The custom "language" has both "functions" and "keywords" which are stored in an ASCII text file. These are simply read by the modeling software and executed. One does not need to compile these macros.

    What would be an efficient way to start learning how to develop an IDE of this nature for a language like this? Am I biting off more than I can chew? Is there an open-source IDE out there which I can build off of (more likely, strip down)?

    Any and all comments are appreciated.

    Note: I've kept the software and "language" vague on purpose.

  2. #2
    Join Date
    Dec 2008
    Posts
    5

    Re: Need advice on developing an IDE

    After reading through my post, I think I'd like to frame my question a bit differently.

    I would like to write a program (perhaps using Visual C#) which is a text editor. This text editor would also be able to recognize certain keywords and symbols, change their color automatically (i.e. red for strings, blue for numeric functions, green for string functions, purple for keywords), and display information as I type based on what I type.

    This sounds like an easier problem than what I originally wrote. Where can I go to learn how to implement something like this? Anyone have any ideas?

    Much appreciated.
    Last edited by eschiesser; June 15th, 2012 at 03:26 PM.

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Need advice on developing an IDE

    I would say that this task isn't easy... To get a start on how to do intellisense I would look into the source of code::blocks or eclipse. How to run the debugger depends on what compiler/linker you choose to use.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  4. #4
    Join Date
    Dec 2008
    Posts
    5

    Re: Need advice on developing an IDE

    Thanks for the response. Take a look at what I wrote above (after the OP). Can you possibly shed some light on that?

  5. #5
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Need advice on developing an IDE

    I'm sorry but no. This is a task that I've no experience in. Maybe some lex (like bison)/ yacc (like flex) lib would be useful for the task.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  6. #6
    Join Date
    Dec 2008
    Posts
    5

    Re: Need advice on developing an IDE

    Quote Originally Posted by S_M_A View Post
    I'm sorry but no.
    Well that doesn't bode well...

    Sounds like I have my work cut out for me. Thanks for reading.

  7. #7
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Need advice on developing an IDE

    I didn't mean to discourage you in this task. It might or not be easier than both you and me think but goahead and try it. The worst thing that can happen is that you learn a lot.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  8. #8
    Join Date
    May 2009
    Posts
    2,413

    Re: Need advice on developing an IDE

    Quote Originally Posted by eschiesser View Post
    I would like to write a program (perhaps using Visual C#) which is a text editor.
    The simplest approach probably is to base the text editor on a so called "rich text control". It's available as a widget of the GUI subsystems of most languages. It will give you basic editor functionality for free so you can concentrate on molding it to your specific needs. In an OO language that would mean to subclass it and add your own enhanced functionality.

    This approach will work until you reach the limits of the specific "rich text control" you're using. Beyond that your task becomes to implement a "rich text control" of your own. If your needs are moderate it may never even come to that.

    Here's an example using C#:

    http://www.c-sharpcorner.com/uploadf...processor.aspx

    This example is somewhat dated but it will give you the general idea and maybe you can find something more current if you search the net.
    Last edited by nuzzle; June 16th, 2012 at 03:49 PM.

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured