2008-05-24から1日間の記事一覧

PDF::Writer:PDF::TechBook コメント

require 'pdf/techbook' PDF::TechBook.run(ARGV) で、以下の内容のファイルを指定し実行 #1<Chapter>xChapter行頭「#」でコメント行に</chapter>

Java FAQ:interface とは?

Java FAQ:S015 Q-01 interface C2008052400i { void foo(); } class C2008052401 implements C2008052400i { void foo() { System.out.println("foo"); } } public class C2008052400 { public static void main(String[] args) { new C2008052401().foo();…

簡単な例。empty

#!/usr/bin/env ruby require 'tdp' include TDParser parser = TDParser.define {|g| g.input = ((token("a") - token("b") - token("c")) | empty()) >> proc {|x| [x[0], x[1], x[2]] } def parse(str) tokens = str.split(/\s+/) input.parse(tokens) en…