-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add automatic boilerplate code for other languages #3
Comments
Rust boilerplate was added by @UsairimIsani |
Boilerplate code now exists for
|
Can I work on this? What are the files I should look at where this feature is implemented? |
What languages do you think can benefit from boilerplate code? The replacement happens here: https://github.com/engineer-man/piston-bot/blob/master/src/cogs/utils/codeswap.py |
I had a look at the list of supported languages and I have to admit, a good part of them I do not know. What do you think? |
C and CPP is already there. Feel free to add anything you think will help - Kotlin seems like a good candidate. |
I would like to add the automatic addition of |
Basic and Fsharp.net would need to be added |
We have automatic boilerplate code for java snippets but there are other languages that could use this functionality as well.
Identify a language that requires some boilerplate code added every time and extend the codeswap.py file with automatic boilerplate for that language if it is not already present in the entered code.
Example:
when you want to run C code like this:
it will not work because it needs
main() {}
make it so that it is automatically added and the code will be interpreted as
The text was updated successfully, but these errors were encountered: