Skip to content

fix: parse empty braces as dict - #84

Merged
muhammadyusufpov merged 3 commits into
hyperlangg:mainfrom
Rayan-and-beyond:fix/empty-braces-dict-73
Sep 14, 2026
Merged

muhammadyusufpov merged 3 commits into
hyperlangg:mainfrom
Rayan-and-beyond:fix/empty-braces-dict-73

Conversation

@Rayan-and-beyond

Copy link
Copy Markdown
Contributor

Closes #73.

Fixes {} parsing as an empty list. Empty braces now produce an empty dict, while [] stays an empty list.

Also:

  • adds a CI fixture that checks {}, len({}), and []
  • runs the fixture through both hyper run and hyper compile
  • removes the old workaround note from the dict compile fixture
  • leaves {1, 2} behavior unchanged

Validation:

  • cargo test — 84/84 passed
  • hyper run fixture — expected output
  • hyper compile fixture — expected output
  • mutation check: restoring the old empty-list behavior makes the new regression fail
  • git diff --check

@muhammadyusufpov muhammadyusufpov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome, and thanks for your first PR! 🎉

@muhammadyusufpov
muhammadyusufpov merged commit 5a2349d into hyperlangg:main Sep 14, 2026
3 checks passed
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.

Empty {} parses as a list

2 participants