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

Add const support for integer types #218

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

edif2008
Copy link
Member

This PR contains the functionality to parse Rust integer constants and generate them into the following languages:

  • Go
  • Typescript
  • Python

The foundational pieces can easily be extended to other constant types (e.g. Boolean, Float and String). However, additional guidance and support might be needed to ensure it works as expected for the other types as well.

This is heavily inspired from #57. It was adapted to the latest version from main and added the code generation snippets for Go, Typescript and Python.

Relates: #44

@edif2008 edif2008 marked this pull request as ready for review December 13, 2024 15:36
core/src/parser.rs Outdated Show resolved Hide resolved
This was commented while debugging and was missed to be uncommented afterwards.
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

Successfully merging this pull request may close these issues.

2 participants