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

[GR-45043] Integrate YARP parser [Part 8] #3406

Merged
merged 131 commits into from
Jan 30, 2024
Merged

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 24, 2024
@graalvmbot graalvmbot force-pushed the ak/adopt-yarp-parser-part-8 branch 6 times, most recently from e4a357c to 39cb22d Compare January 27, 2024 19:46
@graalvmbot graalvmbot force-pushed the ak/adopt-yarp-parser-part-8 branch 3 times, most recently from e05a5a1 to 92a7319 Compare January 28, 2024 15:17
andrykonchin and others added 19 commits January 30, 2024 17:24
* Before Prism it worked thanks to __FILE__ returning the real path
  instead of `<internal:core> core/struct.rb` which is more correct.
* This avoids:
  Invalid source section bounds. (java.lang.IllegalArgumentException)
    from com.oracle.truffle.api.source.Source.assertValid(Source.java:735)
    from com.oracle.truffle.api.source.Source.createSection(Source.java:669)
* We need to remove the eager check using toJavaStringOrThrow() because
  e.g. spec/ruby/language/regexp/encoding_spec.rb fails it.
  .toJavaStringUncached() will anyway not fail but use � in that case.
eregon and others added 22 commits January 30, 2024 18:21
…ic for pre-initialization

* Notably the absolute path of did_you_mean.rb, etc would get in the image and fail the check.
* Those were not noticed before because of `--experimental-options --pattern-matching` always passed for specs.
* And also some string/encoding-related missing SyntaxError from Prism.
* And exclude on missing SyntaxError.
…tants, attribute and reference optional assignment
…at represents encoding either forced or specified with flag
* This avoids creating the TextMap early and is likely faster.
…e it in YARPTranslator

* Remove corresponding excludes for MRI tests which now pass.
@graalvmbot graalvmbot closed this Jan 30, 2024
@graalvmbot graalvmbot deleted the ak/adopt-yarp-parser-part-8 branch January 30, 2024 20:30
@graalvmbot graalvmbot merged commit 9aed25b into master Jan 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants