[#20036] Re: Roundoff problem with Float and Marshal — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

16 messages 2003/04/18
[#20045] Re: Roundoff problem with Float and Marshal — nobu.nakada@... 2003/04/20

なかだです。

[#20063] Re: Roundoff problem with Float and Marshal — matz@... (Yukihiro Matsumoto) 2003/04/22

まつもと ゆきひろです

[#20097] jcode.rb — akira yamada / やまだあきら <akira@...>

25 messages 2003/04/26
[#20098] Re: jcode.rb — matz@... (Yukihiro Matsumoto) 2003/04/27

まつもと ゆきひろです

[#20105] Re: jcode.rb — WATANABE Hirofumi <eban@...> 2003/04/28

わたなべです。

[#20108] Re: jcode.rb — matz@... (Yukihiro Matsumoto) 2003/04/28

まつもと ゆきひろです

[ruby-dev:19970] Re: How do we parse Regular Expressions in our brain?

From: Tanaka Akira <akr@...17n.org>
Date: 2003-04-07 18:44:46 UTC
List: ruby-dev #19970
In article <20030408023633B.maki@rubycolor.org>,
  TAKAHASHI Masayoshi <maki@rubycolor.org> writes:

> そうこうしている間にruby-talkでもこのネタが話題になって
> ますが、なんか「for range representation」がちゃんと
> 伝わってなさそげな感じが。

えぇと、既にけちをつけた後ですが、読み返してみると「for range
representation」を読み飛ばしていたことに気がつきました。

そこで読み直してみると... えぇと、よくわかんないんですけど。

例えば、/[%--abc-]/ の最後の - はエスケープすべきでしょうか?

/[%--abc-]/ の最後の - を

  A literal '-' in a character class should be escaped too
  if the class has other '-' literals for range representation.

という定義と照らし合わせて、

  A literal '-' in a character class should be escaped too
  ~~~~~~~~~~~~~    ~~~~~~~~~~~~~~~~~
     最後の -          [%--abc-]

  if the class has other `-' literals for range representation.
     ~~~~~~~~~     ~~~~~~~~~~~~~~~~~~     ~~~~~~~~~~~~~~~~~~~~
     [%--abc-]          2番目の -                   %--

と対応させて解釈すると、最後の - はエスケープすべきとなるんですが、そ
うなんでしょうか?
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread