-
Notifications
You must be signed in to change notification settings - Fork 150
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
IRB support #930
Comments
Regarding |
Yes, it's possible. For example in ruby/irb#500, use of |
For the state bits, you can just use Something I want to know is if you are trying to just use the Ripper compatibility layer or if you want to migrate fully over to using
|
Hey @st0012 - I know it's been half a year, but I just wanted to check in on where we are with this. I know a lot of changes have gone into IRB since you opened this issue. Is everything here still relevant/necessary? |
When I opened the issue, I assumed IRB could adopt Prism when it's ready. But because IRB still needs to support Ruby 2.7 for a while, we won't be able to do that for at least another half year. |
Following @jemmaissroff's suggestion, here's a list of things IRB'd need in order to use YARP instead of Ripper:
Ripper.sexp
. Maybe something likeYARP.lex(code).value.to_array
?Ripper::Lexer#scan
. I believeYARP.lex_compat
is created for this.:on_sp
token as noted in Investigate emitting:on_sp
event for ripper lex #722Ripper::EXPR_CMDARG
with YARP's, and access them through similar constants, likeYARP::EXPR_CMDARG
?RubyLex
's coupling on Ripper state bits?Let me know if I misunderstood anything or what I can improve from the IRB part 🙏
The text was updated successfully, but these errors were encountered: