2009-03-29から1日間の記事一覧

libharu:HPDFPage#curve_to2

#!/usr/bin/env ruby require "hpdf" pdf = HPDFDoc.new page = pdf.add_page page.move_to(100, 100) page.curve_to2(250, 250, 280, 150) page.stroke pdf.save_to_file(File.basename($0, ".rb") + ".pdf")

Commons Lang、BooleanUtils.toStringOnOff()

import org.apache.commons.lang.BooleanUtils; public class C2009032900 { public static void main(String[] args) { System.out.println(BooleanUtils.toStringOnOff(true)); System.out.println(BooleanUtils.toStringOnOff(false)); System.out.printl…

Token の位置情報、next

matchedToken も Token クラスだから、それと同じか〜 PARSER_BEGIN(Test) public class Test { public static void main(String args[]) throws ParseException { Test parser = new Test(System.in); parser.Input(); } } PARSER_END(Test) SKIP : { <SPACE: " " | "\t" | "\n" | "\r"> } TO</space:>…