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

Implement primitive typenames #194

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Implement primitive typenames #194

merged 2 commits into from
Jul 31, 2023

Conversation

jrandolf-2
Copy link
Contributor

@jrandolf-2 jrandolf-2 commented Jul 2, 2023

This is a minimal implementation that doesn't expose any type names at the moment.

Bug: #193

src/parser.rs Outdated Show resolved Hide resolved
@jrandolf-2 jrandolf-2 requested a review from anweiss July 31, 2023 13:26
src/parser.rs Outdated Show resolved Hide resolved
src/parser.rs Outdated Show resolved Hide resolved
@anweiss anweiss added the enhancement New feature or request label Jul 31, 2023
@jrandolf-2
Copy link
Contributor Author

@anweiss It's probably worth noting that this does not fix the major bug outlined in the above issue. Sadly CDDL is heavily context-dependent, so in order to parse CDDL properly, you need to either ask that users must write their CDDL in order of "more primitive" groups or implement deferred parsing which defers the instantiation of a symbol till all symbols can be resolved. This latter solution is actually the only true way to implement this because generic types require this.

@anweiss
Copy link
Owner

anweiss commented Jul 31, 2023

agreed, thanks @jrandolf! We can make note of this in the README

@anweiss anweiss merged commit c2f8664 into anweiss:main Jul 31, 2023
15 checks passed
@jrandolf-2 jrandolf-2 deleted the jrandolf/typename-discrim branch July 31, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants