From: NISHIO Mizuho Date: 2002-03-18T10:46:04+09:00 Subject: Re: Parsing Ruby Sorry, I make a mistake in the sample script. ------------- Sample --------------- exit if ARGV.size == 0 require 'parser/parser' #require 'pp' parser = FreeRIDE::Parser.new io = File.open(ARGV[0]) begin parser.scan(io) #pp parser.top_level p parser.top_level ensure io.close end ------------------------------------ > This is the sample script. > > ------------- Sample --------------- > exit if ARGV.size == 0 > > require 'parser/parser' > #require 'pp' > > parser = FreeRIDE::Parser.new > io = File.open(ARGV[0]) > > begin > parser.scan(io) > #pp parser.top_level > p parser.top_level > ensure > io.close > end > end > ----------------------------------- *********************** NISHIO Mizuho e-mail : gha@intrastore.cdc.com