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

Update FSH parser+lexer and antlr4 dependency #92

Merged
merged 3 commits into from
Sep 26, 2024
Merged

Conversation

mint-thompson
Copy link
Collaborator

Description:
New versions of the antlr4 package and type definitions are used. Update the FSH parser and lexer to the newest SUSHI grammar that was generated with that version of antlr4.

Rules for alias and paramRuleSet are changed. Use new child rules to get entity details.

Resolve with null instead of rejecting when providing definition. The result is the same, but it avoids filling up the extension host logs.

Testing Instructions:
No test definitions are changed as a result of this update. Confirm that all tests pass on your system. Make use of the extension's features (particularly provide definition, as that relies on the parser) in a FSH project.

Related Issue:
Issue #79 is already closed, but the antlr4 dependency was not updated along with the other dependencies.

Rules for alias and paramRuleSet are changed. Use new child rules to get
entity details.

Resolve with null instead of rejecting when providing definition. The
result is the same, but it avoids filling up the extension host logs.
Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

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

This looks good to me. The only thing I noticed is that we still document antlr4 in the DEPENDENCY-NOTES file. I think we can remove that line now.

Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Member

@cmoesel cmoesel left a comment

Choose a reason for hiding this comment

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

Looks good and works well. Thanks for catching this up to date!

@mint-thompson mint-thompson merged commit ff0313e into master Sep 26, 2024
14 checks passed
@mint-thompson mint-thompson deleted the latest-antlr4 branch September 26, 2024 17:48
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.

3 participants