[#44014] Re: [ruby-core:37707] [Ruby 1.9 - Bug #3781] FIBER_USE_NATIVE が有効だと落ちるスクリプトがある — Narihiro Nakamura <authornari@...>

nariです。

14 messages 2011/07/02
[#44019] Re: [ruby-core:37707] [Ruby 1.9 - Bug #3781] FIBER_USE_NATIVE が有効だと落ちるスクリプトがある — KOSAKI Motohiro <kosaki.motohiro@...> 2011/07/02

> 本当はgc_mark()の際に毎回stack_check()するのがいいと思うのですが、

[#44027] [RubyKaigi] Next version of Ruby 1.8 and 1.9 — "Yuki Sonoda (Yugui)" <yugui@...>

-----BEGIN PGP SIGNED MESSAGE-----

16 messages 2011/07/03

[#44156] [Ruby 1.9 - Feature #5053][Open] ruby コマンドと libruby の食い違いチェック — Makoto Kishimoto <redmine@...>

20 messages 2011/07/19

[#44185] [Ruby 1.9 - Bug #5074][Open] "[BUG] cfp consistency error - send" on TestEnumerator#test_feed_yielder (test/ruby/test_enumerator.rb) — Shota Fukumori <sorah@...>

10 messages 2011/07/22

[#44189] [Ruby 1.9 - Bug #5075][Assigned] invalid *fdp in Mac OS X and FreeBSD over recvmsg with SCM_RIGHTS — Yui NARUSE <naruse@...>

12 messages 2011/07/22

[#44210] 1.9.3 (以降) の BigDecimal について — Tadayoshi Funaba <tadf@...>

BigDecimal() で整数、浮動小数点数、有理数などを受けとれるようになって、

14 messages 2011/07/23
[#44275] Re: 1.9.3 (以降) の BigDecimal について — Tadayoshi Funaba <tadf@...> 2011/07/30

変換には明示的なものとそうでないものがありますが、

[#44223] [Ruby 1.9 - Bug #5094][Assigned] Supported platforms of Ruby 1.9.3 — Yui NARUSE <naruse@...>

21 messages 2011/07/25
[#44229] Re: [Ruby 1.9 - Bug #5094][Assigned] Supported platforms of Ruby 1.9.3 — KOSAKI Motohiro <kosaki.motohiro@...> 2011/07/25

> == 成瀬の提案

[#44230] Re: [Ruby 1.9 - Bug #5094][Assigned] Supported platforms of Ruby 1.9.3 — Urabe Shyouhei <shyouhei@...> 2011/07/26

卜部です

[#44236] Re: [Ruby 1.9 - Bug #5094][Assigned] Supported platforms of Ruby 1.9.3 — Yusuke ENDOH <mame@...> 2011/07/26

遠藤です。

[#44254] [Ruby 1.8 - Bug #5105][Open] CGI::Session#session_id の生成方法について — Masahiro Tomita <tommy@...>

14 messages 2011/07/27
[#44256] [Ruby 1.8 - Bug #5105] CGI::Session#session_id の生成方法について — Yui NARUSE <naruse@...> 2011/07/27

[#44258] Re: [Ruby 1.8 - Bug #5105] CGI::Session#session_id の生成方法について — とみたまさひろ <tommy@...> 2011/07/27

とみたです。

[#44262] Re: [Ruby 1.8 - Bug #5105] CGI::Session#session_id の生成方法について — "NARUSE, Yui" <naruse@...> 2011/07/27

(2011/07/27 19:47), とみたまさひろ wrote:

[#44263] Re: [Ruby 1.8 - Bug #5105] CGI::Session#session_id の生成方法について — とみたまさひろ <tommy@...> 2011/07/27

とみたです。

[#44270] Re: [Ruby 1.8 - Bug #5105] CGI::Session#session_id の生成方法について — とみたまさひろ <tommy@...> 2011/07/29

とみたです。

[#44271] Re: [Ruby 1.8 - Bug #5105] CGI::Session#session_id の生成方法について — Tanaka Akira <akr@...> 2011/07/29

2011年7月29日20:04 とみたまさひろ <tommy@tmtm.org>:

[ruby-dev:44042] [Ruby 1.9 - Bug #4543][Closed] Ripperで"<<-eos\neos"を正常にパースできない

From: Nobuyoshi Nakada <nobu@...>
Date: 2011-07-06 06:07:04 UTC
List: ruby-dev #44042
Issue #4543 has been updated by Nobuyoshi Nakada.

Status changed from Assigned to Closed
% Done changed from 0 to 100

r32412で修正しました。
----------------------------------------
Bug #4543: Ripperで"<<-eos\neos"を正常にパースできない
http://redmine.ruby-lang.org/issues/4543

Author: Kazunori SAKAMOTO
Status: Closed
Priority: Normal
Assignee: Nobuyoshi Nakada
Category: ext
Target version: 1.9.3
ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]


=begin
Ripper::SexpBuilder.new(%Q!<<-eos\neos!).parse
にて、on_heredoc_end メソッドが呼び出されません。

■検証済みバージョン
ruby 1.9.3dev (2011-03-31 trunk 31223) [i686-linux]
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
ruby 1.9.1p431 (2011-02-18 revision 30908) [i686-linux]

■検証用スクリプト
require 'ripper'

class Parser < Ripper::SexpBuilder
  ms = Ripper::SexpBuilder.new('').methods
  defs = ms.map { |s| s.to_s }
    .select { |s| s.start_with?('on_') }
    .map { |s| %Q{
  def #{s}(*args)
    print '#{s}: '
    p args
  end
    }}.join
  eval(defs)
end

def parse(src)
  puts "****" + src.inspect + "****"
  Parser.new(src).parse
  puts
end

parse(%Q!<<-eos\neos!)
parse(%Q!<<-eos\n\neos!)


■実行結果
****"<<-eos\neos"****
on_heredoc_beg: ["<<-eos"]
on_string_content: []
on_string_literal: [[]]
on_nl: ["\n"]
on_stmts_new: []
on_stmts_add: [[], [[]]]
on_program: [[[], [[]]]]

****"<<-eos\n\neos"****
on_heredoc_beg: ["<<-eos"]
on_string_content: []
on_tstring_content: ["\n"]
on_heredoc_end: ["eos"]
on_string_add: [[], ["\n"]]
on_string_literal: [[[], ["\n"]]]
on_nl: ["\n"]
on_stmts_new: []
on_stmts_add: [[], [[[], ["\n"]]]]
on_program: [[[], [[[], ["\n"]]]]]
=end



-- 
http://redmine.ruby-lang.org

In This Thread

Prev Next