Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Null4Ever on March 10, 2017, 06:43:40 pm

Title: Is it possible to interface a new programming language with C::B?
Post by: Null4Ever on March 10, 2017, 06:43:40 pm
Hello,

We're a small team working on a new programming language.

However, we don't plan to develop a new IDE (why reinvent the wheel)?

So my question is simple: Is it possible to interface our new language with C::B?

If yes, how to do so (i.e. where could we found documentation to do it).

TIA for your time to respond.
Title: Re: Is it possible to interface a new programming language with C::B?
Post by: oBFusCATed on March 10, 2017, 08:55:26 pm
What are your goal for the integration - syntax highlight, code completion, debugger, formatting, building?
Title: Re: Is it possible to interface a new programming language with C::B?
Post by: Null4Ever on March 10, 2017, 10:11:08 pm
Hi oBFusCATed, thank you for your post.

What are your goal for the integration - syntax highlight, code completion, debugger, formatting, building?

First are syntax highlight, formatting and code completion.

Then bebugging would be a second phase with a big development from us.

Building should not be a real problem since our new cross platform (Linux, OS/X and Windows and plans for IOs and Android later) open source language uses the traditional gcc compiler suite.

So, all what can be done will be tried.

Now, we're looking for documentation to learn how to do each step.

TIA for any link.
Title: Re: Is it possible to interface a new programming language with C::B?
Post by: stahta01 on March 10, 2017, 10:44:31 pm
Code::Blocks uses an edited version of wxscintilla for Syntax Highlighting.
See if your Language is supported by http://scintilla.org/ (http://scintilla.org/)

Code::Blocks uses astyle for formatting.
See if your Language is supported by http://astyle.sourceforge.net/ (http://astyle.sourceforge.net/)

Edit: Might wish to look at how Python Plugin was done. https://github.com/spillz/codeblocks-python (https://github.com/spillz/codeblocks-python)

Tim S.

Title: Re: Is it possible to interface a new programming language with C::B?
Post by: Null4Ever on March 14, 2017, 06:24:12 pm
Hi Tim S.

Thank you for the links.