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

How can I make my project adaptable to other languages? #23

Open
hhn12138 opened this issue Jul 9, 2024 · 2 comments
Open

How can I make my project adaptable to other languages? #23

hhn12138 opened this issue Jul 9, 2024 · 2 comments

Comments

@hhn12138
Copy link

hhn12138 commented Jul 9, 2024

This project is excellent, and it would be great if it could be adapted to other languages. If i want to modify the project yourself to make it compatible with other languages, what are the main modifications i need to make?

@aorwall
Copy link
Owner

aorwall commented Jul 9, 2024

Thanks! The code is parsed to "CodeBlocks" using Treesitter, so the logic and prompts are agnostic to the programming language being used. What's needed is to add a new parser for the language and a Treesitter query file with definitions.

I've started on a Java parser which uses these treesitter queries.

@JensRoland
Copy link
Contributor

You would also want to write an appropriate Verifier -- for Python it's using the PylintVerifier class which leverages Pylint, and for Java there's a MavenVerifier. You could fairly easily wrap a linter / checker for your chosen language by following those examples.

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

3 participants