JRuby で AST 作ってみた。 だって AST が好きだから。 JRuby のバージョンは 1.3.1。 hello.jruby.RubyASTViewer package hello.jruby; import java.io.ByteArrayInputStream; import org.jruby.Ruby; import org.jruby.ast.Node; /** * Ruby AST Viewer * @author mallowlabs */ public class RubyASTViewer { private String src = ""; private Node ast = null; /** * Constructor. * @param src ruby source code */ public RubyASTViewer(String src)