Skip to content

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?

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