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

Prohibit duplicate keys at parse time #4

Closed
nmushegian opened this issue May 12, 2022 · 1 comment
Closed

Prohibit duplicate keys at parse time #4

nmushegian opened this issue May 12, 2022 · 1 comment

Comments

@nmushegian
Copy link
Owner

JSON spec does not say what to do if there are multiple keys and different parsers do different things.

In JAMS, duplicate keys are defined to be invalid JAMS files, they should not parse. Note this technically changes which kind of language/grammar JAMS is (not LL1 anymore I think) but it doesn’t matter

@dmfxyz
Copy link
Contributor

dmfxyz commented May 22, 2022

I believe this is now handled: https://github.com/nmushegian/jams/blob/master/jams.js#L61

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

No branches or pull requests

2 participants