Project

General

Profile

Actions

Feature #20460

open

Ripper `eval` option

Added by kddnewton (Kevin Newton) 15 days ago. Updated 15 days ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:117732]

Description

There are a couple of differences when producing syntax trees from the parser/ripper when compiling for eval. Namely, for the eval case it does not raise a syntax error for invalid jumps. It would be nice to be able to pass an eval: true/false option to Ripper.sexp/Ripper.sexp_raw/Ripper.new to tell it to parse as if it were an eval.

Because of some new syntax errors, this had led to bugs like https://bugs.ruby-lang.org/issues/20186. If we provide such an option, it could also be useful for debugging purposes.

Actions #1

Updated by kddnewton (Kevin Newton) 15 days ago

  • Tracker changed from Bug to Feature
  • Backport deleted (3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN)
Actions

Also available in: Atom PDF

Like0
Like0