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

Recursive multiline highlighting #17

Merged
merged 19 commits into from
Sep 9, 2024
Merged

Conversation

sungshik
Copy link
Collaborator

@sungshik sungshik commented Sep 6, 2024

This PR adds support for recursive multiline productions.

Before this PR, all recursive productions were simply excluded from conversion in the analysis stage. After this PR, in the analysis stage, productions are classified as either recursive or non-recursive (via a new parameter in ConversionUnit):

  • For non-recursive multi-line productions, essentially the same transformation is used as before.
  • For recursive multi-line productions, there is a new "complex case" (anticipated with an empty else { } in a previous PR) to handle them.

Copy link
Collaborator Author

@sungshik sungshik left a comment

Choose a reason for hiding this comment

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

Just a few additional comments

@sungshik sungshik marked this pull request as ready for review September 9, 2024 07:49
Copy link
Member

@DavyLandman DavyLandman left a comment

Choose a reason for hiding this comment

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

It's getting more and more complex, but looks good.

Copy link
Collaborator Author

@sungshik sungshik left a comment

Choose a reason for hiding this comment

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

Thank you, done

@sungshik sungshik merged commit 8557e38 into main Sep 9, 2024
2 checks passed
@sungshik sungshik deleted the recursive-multiline-highlighting2 branch September 9, 2024 15:14
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