ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:110383] [Ruby master Feature#19068] Print NODE type with yydebug option
@ 2022-10-18  8:52 yui-knk (Kaneko Yuichiro)
  2022-11-07  3:06 ` [ruby-core:110630] [Ruby master Feature#19068] Upgrades required Bison version for development matz (Yukihiro Matsumoto)
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: yui-knk (Kaneko Yuichiro) @ 2022-10-18  8:52 UTC (permalink / raw
  To: ruby-core

Issue #19068 has been reported by yui-knk (Kaneko Yuichiro).

----------------------------------------
Feature #19068: Print NODE type with yydebug option
https://bugs.ruby-lang.org/issues/19068

* Author: yui-knk (Kaneko Yuichiro)
* Status: Open
* Priority: Normal
----------------------------------------
# Background

Printing node type, e.g. `NODE_LIT`, for `yydebug` option is helpful when developing parse.y.

Before:

```
Reducing stack by rule 639 (line 5062):
   $1 = token "integer literal" (1.0-1.1: 1)
-> $$ = nterm simple_numeric (1.0-1.1: )
```

After:

```
Reducing stack by rule 641 (line 5078):
   $1 = token "integer literal" (1.0-1.1: 1)
-> $$ = nterm simple_numeric (1.0-1.1: NODE_LIT)
```

# Consideration

IIRC, CRuby tries to keep it be able to build with old Bison, I guess this is because default Bison for Mac is very old (might be 2.3).
However Bison is still developed and new version has new feature. Therefore I want to confirm it is able to update Bison version required for CRuby development.

# Implementation

https://github.com/ruby/ruby/pull/6579



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-11-15 23:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18  8:52 [ruby-core:110383] [Ruby master Feature#19068] Print NODE type with yydebug option yui-knk (Kaneko Yuichiro)
2022-11-07  3:06 ` [ruby-core:110630] [Ruby master Feature#19068] Upgrades required Bison version for development matz (Yukihiro Matsumoto)
2022-11-07  3:08 ` [ruby-core:110632] " yui-knk (Kaneko Yuichiro)
2022-11-07  3:10 ` [ruby-core:110633] " matz (Yukihiro Matsumoto)
2022-11-08 23:09 ` [ruby-core:110662] " yui-knk (Kaneko Yuichiro)
2022-11-15 14:50 ` [ruby-core:110764] " Eregon (Benoit Daloze)
2022-11-15 14:52 ` [ruby-core:110765] " Eregon (Benoit Daloze)
2022-11-15 15:02 ` [ruby-core:110766] " Eregon (Benoit Daloze)
2022-11-15 23:25 ` [ruby-core:110771] " yui-knk (Kaneko Yuichiro)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).