2008-02-11から1日間の記事一覧

シングルカラムで幅いっぱい

.main, .sidebar { float: none; width: auto; } .sidebar { margin-left: 0; border: 0; } .main div.calendar, .main div.day { margin-right: 0; } #simple-header, h1, .hatena-body { width: auto; max-width: none; } .hatena-body { border: 0; }

演算子の優先度できたよ!

昨日のメモの通りでいけた。 ついでに、クラス化したり、単行演算子も実装したりした。 class Calc class Operator def initialize( priority, proc ) @priority = priority @proc = proc end attr_reader :priority, :proc end class TokenType def initial…