CodeIt
CodeIt copied to clipboard
Changed Refine.js to handle other languages better
Issue no #38
This PR introduces several enhancements to the Code Refiner Tool to streamline and improve the coding experience for developers. The tool now supports multiple programming languages, including Python, C++, JavaScript, SQL, C, and Java, with custom code refinements tailored to the specifics of each language. This update also addresses bugs, improves formatting, and provides more effective integration with coding platforms like LeetCode,
Key Features and Changes: Multi-Language Support:
Added support for the following languages: Python C++ JavaScript SQL C Java Each language is now correctly processed, ensuring language-specific code refinements and test code generation. Language-Specific Refinements:
C++:
Added #include
Resolved issues where C++ functions were not being properly reflected in the main() function. Fixed JavaScript function extraction to handle arrow functions and properly parse function parameters. Corrected formatting issues in Python and C code when generating test cases. Code Formatting and Cleanup:
Applied consistent indentation and code formatting across all supported languages.
The tool now adapts to coding platforms (e.g., LeetCode) and generates refined code based on the selected platform. Ensures platform-specific code templates are processed correctly and includes placeholders for variables and test cases. Enhanced User Experience:
Added placeholder comments like // TODO: Initialize to guide users in filling in test cases.
Clear separation between the original code and generated test code for easier editing.
Deploy Preview for codeittool ready!
| Name | Link |
|---|---|
| Latest commit | e662ca1308b43056925c0fb39d97ddeb4ad87cad |
| Latest deploy log | https://app.netlify.com/sites/codeittool/deploys/670b7f91044cae0008a63464 |
| Deploy Preview | https://deploy-preview-110--codeittool.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
okay
Sql changes done
Thanks for this wonderful contribution @NikhilJ2005.
Hi , can i add Php , Golang , Typescript and C# to refine.js.
Sure @NikhilJ2005, you can. Create a new pull request and corresponding PR for the same, this will help you gain more points for this complex contribution.