Project

General

Profile

Actions

Backport #5331

closed

Ripper#yydebug and friends don't work

Added by drbrain (Eric Hodel) over 12 years ago. Updated over 12 years ago.

Status:
Closed
[ruby-core:39591]

Description

Ripper#yydebug, #yydebug=, #end_seen? and #encoding all fail to work with a TypeError due to using a different parser_data_type.

The attached patch fixes this by defining static implementations:

ripper_end_seen_p
ripper_encoding
ripper_get_yydebug
ripper_set_yydebug

I don't know if it's the right patch, though. I tried making parser_data_type an exported symbol but had no luck.

The attached test file adds tests for each of these methods to ensure they work.

PS: redmine is down


Files

parser.y.ripper_yydebug.patch (3.54 KB) parser.y.ripper_yydebug.patch drbrain (Eric Hodel), 09/17/2011 02:52 PM
test_ripper.rb (800 Bytes) test_ripper.rb drbrain (Eric Hodel), 09/17/2011 02:52 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0