Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement reading SyntaxKind from strings #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abhillman
Copy link

Summary & Motivation

After parsing with rnix, I store an intermediate form in JSON which I wish to be able to re-serialize into an AST. Allowing reading SyntaxKind from strings is helpful for this use-case.

Backwards-incompatible changes

n/a

Further context

n/a

@oberblastmeister
Copy link
Contributor

I don't know if I want to pull in the strum dependency for this. There's this issue in rowan for deserialization rust-analyzer/rowan#74. I think you could just store the text and then parse it to deserialize it?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants