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

* [ruby-core:110630] [Ruby master Feature#19068] Upgrades required Bison version for development
  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 ` matz (Yukihiro Matsumoto)
  2022-11-07  3:08 ` [ruby-core:110632] " yui-knk (Kaneko Yuichiro)
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: matz (Yukihiro Matsumoto) @ 2022-11-07  3:06 UTC (permalink / raw
  To: ruby-core

Issue #19068 has been updated by matz (Yukihiro Matsumoto).


Sounds reasonable. What version are you going to use?

Matz.


----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-99966

* 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

* [ruby-core:110632] [Ruby master Feature#19068] Upgrades required Bison version for development
  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 ` yui-knk (Kaneko Yuichiro)
  2022-11-07  3:10 ` [ruby-core:110633] " matz (Yukihiro Matsumoto)
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: yui-knk (Kaneko Yuichiro) @ 2022-11-07  3:08 UTC (permalink / raw
  To: ruby-core

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


Regarding Bison version, I expect Bison 3.0 or later at the moment.

----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-99968

* 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

* [ruby-core:110633] [Ruby master Feature#19068] Upgrades required Bison version for development
  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 ` matz (Yukihiro Matsumoto)
  2022-11-08 23:09 ` [ruby-core:110662] " yui-knk (Kaneko Yuichiro)
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: matz (Yukihiro Matsumoto) @ 2022-11-07  3:10 UTC (permalink / raw
  To: ruby-core

Issue #19068 has been updated by matz (Yukihiro Matsumoto).


OK. Go ahead.

Matz.


----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-99969

* 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

* [ruby-core:110662] [Ruby master Feature#19068] Upgrades required Bison version for development
  2022-10-18  8:52 [ruby-core:110383] [Ruby master Feature#19068] Print NODE type with yydebug option yui-knk (Kaneko Yuichiro)
                   ` (2 preceding siblings ...)
  2022-11-07  3:10 ` [ruby-core:110633] " matz (Yukihiro Matsumoto)
@ 2022-11-08 23:09 ` yui-knk (Kaneko Yuichiro)
  2022-11-15 14:50 ` [ruby-core:110764] " Eregon (Benoit Daloze)
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: yui-knk (Kaneko Yuichiro) @ 2022-11-08 23:09 UTC (permalink / raw
  To: ruby-core

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


[note]

Updated rbenv/ruby-build wiki page.


https://github.com/rbenv/ruby-build/wiki/Home/_compare/69f3e1e995fa2cb86cb10b218be6c292a3b4ac66...4358841999b580f9b34a6783f231145b94490760

----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-100006

* Author: yui-knk (Kaneko Yuichiro)
* Status: Closed
* 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

* [ruby-core:110764] [Ruby master Feature#19068] Upgrades required Bison version for development
  2022-10-18  8:52 [ruby-core:110383] [Ruby master Feature#19068] Print NODE type with yydebug option yui-knk (Kaneko Yuichiro)
                   ` (3 preceding siblings ...)
  2022-11-08 23:09 ` [ruby-core:110662] " yui-knk (Kaneko Yuichiro)
@ 2022-11-15 14:50 ` Eregon (Benoit Daloze)
  2022-11-15 14:52 ` [ruby-core:110765] " Eregon (Benoit Daloze)
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Eregon (Benoit Daloze) @ 2022-11-15 14:50 UTC (permalink / raw
  To: ruby-core

Issue #19068 has been updated by Eregon (Benoit Daloze).


This broke ruby-dev-builder: https://github.com/ruby/ruby-dev-builder/actions/runs/3464389673/jobs/5785863246
I'll try if `brew install bison` is enough.
I hope it isn't needed to prepend bison to PATH, otherwise we'll need changes in all Ruby installers.

For reference, the commit on GitHub: https://github.com/ruby/ruby/commit/f7db1affd10767d729866e95c02ffb26266829ab


----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-100108

* Author: yui-knk (Kaneko Yuichiro)
* Status: Closed
* 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

* [ruby-core:110765] [Ruby master Feature#19068] Upgrades required Bison version for development
  2022-10-18  8:52 [ruby-core:110383] [Ruby master Feature#19068] Print NODE type with yydebug option yui-knk (Kaneko Yuichiro)
                   ` (4 preceding siblings ...)
  2022-11-15 14:50 ` [ruby-core:110764] " Eregon (Benoit Daloze)
@ 2022-11-15 14:52 ` 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)
  7 siblings, 0 replies; 9+ messages in thread
From: Eregon (Benoit Daloze) @ 2022-11-15 14:52 UTC (permalink / raw
  To: ruby-core

Issue #19068 has been updated by Eregon (Benoit Daloze).


@yui-knk Just installing bison is not enough on macOS:
https://github.com/ruby/ruby-dev-builder/actions/runs/3471482135/jobs/5801034797

So I think you need to make PRs to all Ruby installers otherwise Ruby 3.2 won't build anymore on macOS.
This is quite unfortunate, IMHO it might be reason enough to revert this change, because it's going to be messy to deal with this in every script building Ruby.

----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-100109

* Author: yui-knk (Kaneko Yuichiro)
* Status: Closed
* 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

* [ruby-core:110766] [Ruby master Feature#19068] Upgrades required Bison version for development
  2022-10-18  8:52 [ruby-core:110383] [Ruby master Feature#19068] Print NODE type with yydebug option yui-knk (Kaneko Yuichiro)
                   ` (5 preceding siblings ...)
  2022-11-15 14:52 ` [ruby-core:110765] " Eregon (Benoit Daloze)
@ 2022-11-15 15:02 ` Eregon (Benoit Daloze)
  2022-11-15 23:25 ` [ruby-core:110771] " yui-knk (Kaneko Yuichiro)
  7 siblings, 0 replies; 9+ messages in thread
From: Eregon (Benoit Daloze) @ 2022-11-15 15:02 UTC (permalink / raw
  To: ruby-core

Issue #19068 has been updated by Eregon (Benoit Daloze).


Although because `bison` is only needed for development/non-release builds it's a smaller concern.

So then it's needed to fix `ruby-build 3.2.0-dev some/prefix` and `rvm install ruby-head` to use the Homebrew bison on macOS.

----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-100110

* Author: yui-knk (Kaneko Yuichiro)
* Status: Closed
* 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

* [ruby-core:110771] [Ruby master Feature#19068] Upgrades required Bison version for development
  2022-10-18  8:52 [ruby-core:110383] [Ruby master Feature#19068] Print NODE type with yydebug option yui-knk (Kaneko Yuichiro)
                   ` (6 preceding siblings ...)
  2022-11-15 15:02 ` [ruby-core:110766] " Eregon (Benoit Daloze)
@ 2022-11-15 23:25 ` yui-knk (Kaneko Yuichiro)
  7 siblings, 0 replies; 9+ messages in thread
From: yui-knk (Kaneko Yuichiro) @ 2022-11-15 23:25 UTC (permalink / raw
  To: ruby-core

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


Thanks for sharing.

I think `brew install bison` is enough because the command install `bison@3.8` now.
It seems your fix works well, https://github.com/ruby/ruby-dev-builder/commit/1cdfbf1ebb4d417d43f968b35a416fba5987a3f0.


----------------------------------------
Feature #19068: Upgrades required Bison version for development
https://bugs.ruby-lang.org/issues/19068#change-100116

* Author: yui-knk (Kaneko Yuichiro)
* Status: Closed
* 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).