Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for a new language #104

Open
lem102 opened this issue Apr 15, 2024 · 7 comments
Open

Adding support for a new language #104

lem102 opened this issue Apr 15, 2024 · 7 comments

Comments

@lem102
Copy link

lem102 commented Apr 15, 2024

I'd like to add support for a new lanugage.

As advised in the readme, I have looked at the code for json support. This file doesn't seem to contain anything that tells combobulate that there is support for json.

Other than creating a similar file for the new language, what else do I need to do to at least tell combobulate that there is some support for a new language?

P.S. What does the build-relationships.py script do?

Cheers.

@mickeynp
Copy link
Owner

Please use the development branch as it is substantially different and should be somewhat simpler to set up.

The python script downloads the rules and types and updates the rules file. It's required. You'll need to define the procedures for the language, with JSON being but one example of how to do it.

The language definer macro in the development branch is what you want to use.

@lem102
Copy link
Author

lem102 commented Apr 16, 2024 via email

@mickeynp
Copy link
Owner

Not really, I'm afraid. Looking at other languages and experimenting is the only way, until I add documentation.

@MagicRB
Copy link

MagicRB commented Sep 19, 2024

How's the documentation looking? It's somewhat overwhelming trying to reverse engineer hwo to add support for a new language by looking at the existing language files :). I've personally an interest in Haskell, Rust, C and Nix

@mickeynp
Copy link
Owner

Have a read here:

https://github.com/mickeynp/combobulate/wiki/Adding-a-New-Language-to-Combobulate

And let me know what you think

@tmcgilchrist
Copy link

Thanks for writing that up @mickeynp

Does the suggestion "Please use the development branch as it is substantially different and should be somewhat simpler to set up." still hold when adding a new language? I'm working on adding support for my language of choice OCaml.

@mickeynp
Copy link
Owner

mickeynp commented Mar 5, 2025

Yes, development is usually ahead of master, and should be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants