2008-02-23から1日間の記事一覧
require 'pdf/writer' pdf = PDF::Writer.new pdf.translate_axis(pdf.margin_x_middle, pdf.margin_y_middle) pdf.rectangle(0, 0, 100, 50).stroke File.open("2008022300.pdf", "wb") { |f| f.write pdf.render }
(category-set-mnemonics (char-category-set ?a)) => "al"modify-category-entry とばし
『とほほのJava入門』を読んでいるところ20. リスナー の「アイテムリスナー」 ページのソースをそのまま試す。
付録の Scanner の例を bison マニュアルの中間記法電卓で確認CUP ファイルは、 import java_cup.runtime.*; terminal SEMI, PLUS, MINUS, TIMES, DIVIDE, MOD, EXPON, EOL, LPAREN, RPAREN; terminal UMINUS; terminal Integer NUMBER; non terminal Object…