Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: EdK on December 17, 2005, 04:40:07 pm

Title: Support for New Languages
Post by: EdK on December 17, 2005, 04:40:07 pm
I've been using Code::Blocks for a couple of weeks now, and really like it.

I do most, but not all, of my work in C++. I would like use Code:Block for other languages. It looks like this can be done, but it is poorly documented (like everything in Code::Blocks, this is the biggest weakness).

I thought I'd start by looking at what other people had already don, so I downloaded the MatLab lexer files and put them in the lexer directory, but Code::Blocks seems to be unable to find them. What do I have to do to get C::B to find the new lexter?

After I have figured out how to add new lexers, I will be trying to integrate with new compilers (ocaml, D, and AspectC++ for starters), if any one knows of problems I am likely to encounter when I get there a heads up would be appreciated.

    -EdK
Title: Re: Support for New Languages
Post by: Michael on December 17, 2005, 10:07:33 pm
I do most, but not all, of my work in C++. I would like use Code:Block for other languages. It looks like this can be done, but it is poorly documented (like everything in Code::Blocks, this is the biggest weakness).

IMHO, it is rather difficult to provide good documentation of a project that is continuing developing and improving. Good documentation requires a lot of time to be done and mantained. Anyway, between the wiki and the sdk reference manual (http://forums.codeblocks.org/index.php?topic=1358.0), C::B is not so poorly documented. And the users of the forum are always ready to answer questions :).

After I have figured out how to add new lexers, I will be trying to integrate with new compilers (ocaml, D, and AspectC++ for starters), if any one knows of problems I am likely to encounter when I get there a heads up would be appreciated.

D (http://forums.codeblocks.org/index.php?topic=1273.0) has already been integrated :). GNU Fortran 77 (http://wiki.codeblocks.org/index.php?title=Installing_Fortran_Compiler) has also been integrated (check the C::B wiki. It is an interesting how todo article).

Michael
Title: Re: Support for New Languages
Post by: rickg22 on December 18, 2005, 06:20:08 am
Also, a new compiler framework will be implemented on version 2.0. This will solve all the current problems. :)
Title: Re: Support for New Languages
Post by: Michael on December 18, 2005, 06:20:56 pm
Also, a new compiler framework will be implemented on version 2.0. This will solve all the current problems. :)

A new compiler framework? If this will make addition and customization of new and compilers, it would be great :D.

Thanks for the good new.

Michael
Title: Re: Support for New Languages
Post by: MortenMacFly on December 18, 2005, 06:39:07 pm
so I downloaded the MatLab lexer files and put them in the lexer directory, but Code::Blocks seems to be unable to find them
Please note that in http://forums.codeblocks.org/index.php?topic=1483.0 I also stated that there is currently an issue with adding new lexer files to C::B. Also new file types are not registered correctly on restart of C::B (http://forums.codeblocks.org/index.php?topic=1693). I am working on a patch which I will provide to sourceforge for it.

Morten.