[ruby-core:117732] [Ruby master Bug#20460] Ripper `eval` option

Issue #20460 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #20460: Ripper `eval` option https://bugs.ruby-lang.org/issues/20460 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- 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. -- https://bugs.ruby-lang.org/
participants (1)
-
kddnewton (Kevin Newton)