rubyとRubyに関するhyrrotのブックマーク (4)

  • Route 477(2009-10-14)

    ■ [ruby] (Ruby 1.9の)Hashが順序を保持するのは自然か という話がありましたが: ときどきの雑記帖 i戦士篇 2009年10月(中旬) Rubyは、ArrayがStackやQueueを含んでいるように、大クラス主義の言語です。 Hashが順序を保持するようになったというよりは、 「HashがOrderedHashを含むようになった」と考えると自然かなぁと思います。 ■ [smalltalk] GNU Smalltalkなら、コマンドラインでSmalltalkを試せる そんなものがあったのか!ということで、MacPortsで入れてみる。 *1 $ port install gst gstコマンドで起動。 /Users/yhara/proj/smalltalk % gst GNU Smalltalk ready st> 1 + 2 3 st> おお、動いてるっぽい。 st>

    Route 477(2009-10-14)
    hyrrot
    hyrrot 2009/10/15
  • Route 477(2009-03-18)

    ■ [ruby] Ruby用PEGパーザ、Treetopを使ってみる TreetopRuby用のPEG(解析表現文法)のpackrat parserである。 よく分かってないけど、そういうものらしい。 PEGの特徴については適宜google検索してもらうとして(ひどい)、ここではTreetopを使って簡単な文法をパーズしてみた。 1. インストール gem install treetop Vim使いはvim用の色付けもインストールしておくと良いかも。 2. 文法を書く パーザといったら(異論もあろうが)四則演算である。リファレンスを参考に、とりあえず足し算だけの文法を定義してみよう。 dentaku.treetop: grammar Dentaku rule additive (number "+" number) / number end rule number [0-9]+ end

    Route 477(2009-03-18)
  • Signs & Symbols : Han Translation Gifts : CafePress.com

    There’s still time for Father's Day Delivery! - Select Expedited Shipping at checkout! Celebrate Father's Day! | Save up to 35% Off Sitewide | Price as marked | See Details | Shop All Deals

    Signs & Symbols : Han Translation Gifts : CafePress.com
    hyrrot
    hyrrot 2008/12/18
    欲しい
  • _why's Estate

    Hey, welcome to my collection of why the lucky stiff links. Everything _why has published on the internet should be accessible from here. It works sort of like a museum that sells maps. Many of his abandoned writings are mirrored locally here, and everything else is through external links. Jump to: Code   Writings   Pictures   Music   Videos   Miscellaneous Code Thankyou whymirror.github.io. bloop

    _why's Estate
  • 1