From: duerst Date: 2021-09-12T02:00:53+00:00 Subject: [ruby-core:105206] [Ruby master Bug#18159] Integrate functionality of dead_end gem into Ruby Issue #18159 has been updated by duerst (Martin D�rst). Target version set to 3.1 Assignee set to matz (Yukihiro Matsumoto) schneems (Richard Schneeman) wrote in #note-2: > For additional context for anyone who could not see the presentation, I uploaded my RubyKaigi talk as unlisted on YouTube https://youtu.be/DfGG77zVVR4. This is now also available 'officially' at https://youtu.be/oL_yxJN8534. > Skip ahead for a demo of `dead_end` parsing source code at 12:51. And then, I do a walk-through of how the algorithm internals works from 15:08 until the end. I think in this issue, what's more important than the parser or algorithm used is how to integrate it into Ruby. My guess is that the easiest way would be to integrate it in the same way as the 'did_you_mean' and 'error_highlight' gems. @schneems: Can you look at whether an integration similar to did_you_mean' and 'error_highlight' is easy/possible? I've put this on the agenda of this week's dev meeting (issue #18122, Thursday Japan time), so any additional information we can get before would be great. ---------------------------------------- Bug #18159: Integrate functionality of dead_end gem into Ruby https://bugs.ruby-lang.org/issues/18159#change-93612 * Author: duerst (Martin D�rst) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: 3.1 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Missing 'end' errors are difficult to fix. We should integrate the functionality of the dead_end gem (https://github.com/zombocom/dead_end) into Ruby similar to how we integrated did_you_mean. It would greatly help programming Ruby, in particular for beginners. See also Ruby Kaigi Takeout 2021 talk by Richard Schneeman https://rubykaigi.org/2021-takeout/presentations/schneems.html. -- https://bugs.ruby-lang.org/ Unsubscribe: