Skip to content

Add new language interfaces #1

@kguzek

Description

@kguzek

Currently, the project only supports code generation in C. In order to support more languages, each language requires an implementation of BaseLanguageInterface in interfaces/lang. Additionally, the interface will need to be registered in interfaces/file.py to be available for use via the CLI.

List of languages to be added:

  • python
  • python3 (thanks @dancikmad)
  • javascript
  • typescript
  • c
  • cpp
  • csharp
  • java
  • php
  • swift
  • kotlin
  • dart
  • golang (thanks @dancikmad)
  • ruby
  • scala
  • rust
  • racket
  • erlang
  • elixir

If you know any of the above languages and are willing to help, feel free to submit a PR and mention me to check it out!

Tip

Be sure to use the provided unit test to verify your implementation handles various cases:

python -m src.lpg.interfaces.lang_test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions