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

Improve objc grammar: better expr syntax; fix some issues #4333

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

DJBen
Copy link
Contributor

@DJBen DJBen commented Nov 19, 2024

Overview

  • Borrowed C expression syntax: The expression syntax now is parsed in order of the operator precedence.
  • Fixed an issue that array literal containing assignment isn't recognized: @[ foo = bar ]; is valid
  • Fixed an issue that spaces after @ in @ try {} @catch (...) isn't allowed. Surprisingly they are valid.
  • Fixed an issue that ellipsis in @catch isn't allowed.
  • Add direct in @property attributes
  • Stricter numeral type parsing: long long long int used to be valid, but now it isn't.

Testing

  • Test cases are added

@teverett
Copy link
Member

@DJBen thanks!

@teverett teverett merged commit 765425a into antlr:master Nov 29, 2024
31 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.

2 participants