From c2c7f4c186d682444b0c02a5fb4befbb54e8be4f Mon Sep 17 00:00:00 2001 From: aamine Date: Sun, 19 Sep 2004 19:49:56 +0000 Subject: * ext/ripper/ripper.rb.in: new const Ripper::PARSER_EVENT_TABLE. * ext/ripper/ripper.rb.in: new const Ripper::SCANNER_EVENT_TABLE. * ext/ripper/lib/ripper.rb: sync with ripper.rb.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/ripper/tools/generate-ripper_rb.rb | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'ext/ripper/tools') diff --git a/ext/ripper/tools/generate-ripper_rb.rb b/ext/ripper/tools/generate-ripper_rb.rb index 9d33bddc4c..b85d2745a0 100755 --- a/ext/ripper/tools/generate-ripper_rb.rb +++ b/ext/ripper/tools/generate-ripper_rb.rb @@ -2,6 +2,12 @@ def main template, ids1, ids2 = *ARGV + print <
#{arity}" end puts end def read_ids(path) - File.readlines(path).map {|line| line.split[0] } + File.readlines(path).map {|line| line.split } end -def argdecl(n) - %w(a b c d e f g h i j k l m)[0, n].join(', ') +def paramdecl(n) + return '' if n == 0 + '(' + %w(a b c d e f g h i j k l m)[0, n].join(', ') + ')' end main -- cgit v1.2.3