2008-05-08から1日間の記事一覧
require 'pdf/charts/stddev' pdf = PDF::Writer.new chart = PDF::Charts::StdDev.new p chart.dot chart.dot = PDF::Charts::StdDev::Marker.new do |marker| marker.style = PDF::Writer::StrokeStyle.new(10) marker.color = Color::RGB::Blue end p cha…
Java FAQ:S012 Q-05ファイル1 class C2008050801 { static final int x = 1; } ファイル2 public class C2008050800 { public static void main(String[] args) { System.out.println(C2008050801.x); } } で、 1ファイル1を変更しコンパイルしただけで…
%{ %} %token IDENT NUMBER STRING %% program : | program stmt '\n' { $lineno++; } | program '\n' { $lineno++; } ; stmt : primary | assign | IDENT args { stmt = do_funcall(IDENT, args); } ; funcall : IDENT '(' args ')' { funcall = do_funcall…