Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Adding More Languages to Piston-CLI #5

Open
Shivansh-007 opened this issue Feb 13, 2021 · 7 comments
Open

Adding More Languages to Piston-CLI #5

Shivansh-007 opened this issue Feb 13, 2021 · 7 comments
Assignees
Labels
area: languages level: 0 - beginner This PR is beginner-friendly. priority: 2 - medium Medium Priority status: approved type: enhancement Changes or improvements to existing features

Comments

@Shivansh-007
Copy link
Owner

We want to add languages as soon as they are added on the piston-api, and keep increasing the languages count in this, but for that we need to add those languages' lexers and few other stuff. This meta issue contains information general information for this project and keeps track of the progress.

Note: If you want to help with adding more languages, please make to get yourself assigned to one of the open issues for adding languages. This system prevents that multiple people are working on the same tests.

General information

Procedure:

  1. Add the language to languages_.
  2. Add the language's lexer in init_lexers() if the lexer is present else skip this.
  3. Add the language to the quick map and assign which lexer it is going to use, if that lexer is not available choose the closest matching lexer. You can have a look at this file for finding the lexers.
  4. Add the language extension to lang_extensions_.
  5. Done! 🎉

A few important points:

  • Please take a look at the existing code to get an idea of the existing conventions in this repository.

Progress

Currently the progress i being tracked by commenting on this Issue, on what language to add, and then opening a separate issue for that.

@Shivansh-007 Shivansh-007 added type: enhancement Changes or improvements to existing features level: 0 - beginner This PR is beginner-friendly. status: approved area: languages labels Feb 13, 2021
@Shivansh-007 Shivansh-007 pinned this issue Feb 13, 2021
@Shivansh-007
Copy link
Owner Author

Shivansh-007 commented Feb 13, 2021

Need to add the following;

  • Paradox
  • Nasm
  • Crystal
  • Dash
  • Osaborn
  • Nim
  • Deno
  • Scala
  • Typescript
  • Lua

@Shivansh-007 Shivansh-007 added the priority: 2 - medium Medium Priority label Feb 14, 2021
@Shivansh-007
Copy link
Owner Author

Shivansh-007 commented Feb 19, 2021

  • Prolog

@Shivansh-007 Shivansh-007 self-assigned this Feb 19, 2021
@TomKloucek
Copy link

TomKloucek commented Feb 21, 2021

You can assign me.

@Shivansh-007
Copy link
Owner Author

@TomKloucek Which language do you want to add? I believe we are up to date with the Piston API.
There are few more issues available like #22 and don’t forget to join our Discord Community before contributing.
Thanks

@TomKloucek
Copy link

  • Prolog
Okay, i will look it up

@Shivansh-007
Copy link
Owner Author

  • Prolog
Okay, i will look it up

Prolog gets added in Pull Request #25.

@Shivansh-007
Copy link
Owner Author

I know few new languages have been added to piston, but am waiting for the v3 version to get merged, probably in a week. Which adds few more languages and versions for few languages, so I will be mentioning all this change together later.

@Shivansh-007 Shivansh-007 modified the milestone: V1.5.0 Sep 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: languages level: 0 - beginner This PR is beginner-friendly. priority: 2 - medium Medium Priority status: approved type: enhancement Changes or improvements to existing features
Projects
None yet
Development

No branches or pull requests

2 participants