News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Support for New Languages

Started by EdK, December 17, 2005, 04:40:07 PM

Previous topic - Next topic

EdK

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

Michael

Quote from: EdK on December 17, 2005, 04:40:07 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, C::B is not so poorly documented. And the users of the forum are always ready to answer questions :).

Quote from: EdK on December 17, 2005, 04:40:07 PM
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 has already been integrated :). GNU Fortran 77 has also been integrated (check the C::B wiki. It is an interesting how todo article).

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

rickg22

Also, a new compiler framework will be implemented on version 2.0. This will solve all the current problems. :)

Michael

Quote from: 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. :)

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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

MortenMacFly

Quote from: EdK on December 17, 2005, 04:40: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.next.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.next.codeblocks.org/index.php?topic=1693). I am working on a patch which I will provide to sourceforge for it.

Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]