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

No conversion when delimiter occurs elsewhere too #19

Merged
merged 15 commits into from
Sep 23, 2024

Conversation

sungshik
Copy link
Collaborator

@sungshik sungshik commented Sep 11, 2024

This PR disables the conversion of a multi-line production to a multi-line rule (begin/end pattern) when that production begins with a delimiter that also occurs in other unrelated productions (e.g., > in Rascal's own grammar). Single-line rules for multi-line productions are still generated (e.g., single-line strings in Rascal are still supported). To do this, this PR:

  • Adds a type/function to distinguish different occurrences of the same literal in different productions
  • Fixes an issue with the definition of delimiters

Furthermore, this PR:

  • Adds a workaround for the batch execution of tests (related to a race in execWithCode)

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.

Additional comments

@sungshik sungshik marked this pull request as ready for review September 16, 2024 15:04
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.

LGTM

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.

Thanks!

@sungshik sungshik merged commit 5eda17f into main Sep 23, 2024
2 checks passed
@sungshik sungshik deleted the no-conversion-when-delimiter-occurs-elsewhere-too branch September 23, 2024 10:23
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