From 94df732f8b69356626130e0ec8b2dbc9340082ef Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 3 May 2001 08:56:49 +0000 Subject: Get rid of Japanese comments and fix English comments as appropriate. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/context.rb | 1 - lib/irb/extend-command.rb | 1 - lib/irb/init.rb | 6 ------ lib/irb/lc/error.rb | 2 +- lib/irb/lc/ja/error.rb | 2 +- lib/irb/multi-irb.rb | 4 +--- lib/irb/ruby-lex.rb | 7 +------ lib/irb/slex.rb | 13 +++++-------- lib/irb/workspace.rb | 4 ++-- 9 files changed, 11 insertions(+), 29 deletions(-) (limited to 'lib/irb') diff --git a/lib/irb/context.rb b/lib/irb/context.rb index 8fa9de63ad..ffc77de875 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -28,7 +28,6 @@ module IRB @irb_level = 0 # copy of default configuration - # (JP: デフォルトコンフィギュレーションのコピー) @ap_name = IRB.conf[:AP_NAME] @rc = IRB.conf[:RC] @load_modules = IRB.conf[:LOAD_MODULES] diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index bc657520a7..3f92707d01 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -12,7 +12,6 @@ module IRB # # IRB extended command - # (JP: IRB拡張コマンド) # module ExtendCommand # include Loader diff --git a/lib/irb/init.rb b/lib/irb/init.rb index abfd9cdc22..f34a51b345 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -13,7 +13,6 @@ module IRB # initialize config - # (JP: configの初期化) def IRB.initialize(ap_path) IRB.init_config(ap_path) IRB.init_error @@ -27,7 +26,6 @@ module IRB @MATHN_INITIALIZED = false # default configurations - # (JP: デフォルトコンフィギュレーション) unless ap_path and @CONF[:AP_NAME] ap_path = File.join(File.dirname(File.dirname(__FILE__)), "irb.rb") end @@ -102,7 +100,6 @@ module IRB end # option analyzing - # (JP: オプション解析) def IRB.parse_opts while opt = ARGV.shift case opt @@ -205,7 +202,6 @@ module IRB end # initialize tracing function - # (JP: トレーサ初期設定) def IRB.initialize_tracer unless @TRACER_INITIALIZED require("tracer") @@ -219,7 +215,6 @@ module IRB end # initialize mathn function - # (JP: mathn初期設定) def IRB.initialize_mathn unless @MATHN_INITIALIZED require "mathn" @@ -228,7 +223,6 @@ module IRB end # initialize loader function - # (JP: loader初期設定) def IRB.initialize_loader unless @LOADER_INITIALIZED require "irb/loader" diff --git a/lib/irb/lc/error.rb b/lib/irb/lc/error.rb index 15f3cab83c..de38f29978 100644 --- a/lib/irb/lc/error.rb +++ b/lib/irb/lc/error.rb @@ -13,7 +13,7 @@ require "e2mmap" module IRB - # exceptions (JP: 例外定義) + # exceptions extend Exception2MessageMapper def_exception :UnrecognizedSwitch, "Unrecognized switch: %s" def_exception :NotImplementError, "Need to define `%s'" diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb index 1fa3ae328d..d5aef0a7c8 100644 --- a/lib/irb/lc/ja/error.rb +++ b/lib/irb/lc/ja/error.rb @@ -12,7 +12,7 @@ require "e2mmap" module IRB - # exceptions (JP: 例外定義) + # exceptions extend Exception2MessageMapper def_exception :UnrecognizedSwitch, 'スイッチ(%s)が分りません' def_exception :NotImplementError, '`%s\'の定義が必要です' diff --git a/lib/irb/multi-irb.rb b/lib/irb/multi-irb.rb index af9d773a2a..51c8c9c448 100644 --- a/lib/irb/multi-irb.rb +++ b/lib/irb/multi-irb.rb @@ -1,5 +1,5 @@ # -# irb/multi-irb.rb - multiple irb module(JP: 複数irb対応モジュール) +# irb/multi-irb.rb - multiple irb module # $Release Version: 0.7.3$ # $Revision$ # $Date$ @@ -14,7 +14,6 @@ require "thread" module IRB # job management class - # (JP: job管理クラス) class JobManager @RCS_ID='-$Id$-' @@ -142,7 +141,6 @@ module IRB end # invoke multi-irb - # (JP: irb起動) def IRB.irb(file = nil, *main) workspace = WorkSpace.new(*main) parent_thread = Thread.current diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 5b37013361..e92b45b151 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -458,8 +458,7 @@ class RubyLex ungetc identify_number else - # for obj.if - # (JP: obj.if などの対応) + # for "obj.if" etc. @lex_state = EXPR_DOT Token(TkDOT) end @@ -693,7 +692,6 @@ class RubyLex token.concat getc end # almost fix token - # (JP: 大体fix token) case token when /^\$/ @@ -709,13 +707,11 @@ class RubyLex token_c, *trans = TkReading2Token[token] if token_c # reserved word? - # (JP: 予約語かどうか?) if (@lex_state != EXPR_BEG && @lex_state != EXPR_FNAME && trans[1]) # modifiers - # (JP: 修飾子) token_c = TkSymbol2Token[trans[1]] @lex_state = trans[0] else @@ -960,7 +956,6 @@ class RubyLex end else # other characters - #(JP:その他の文字) end end end diff --git a/lib/irb/slex.rb b/lib/irb/slex.rb index e283df40fe..26008906e5 100644 --- a/lib/irb/slex.rb +++ b/lib/irb/slex.rb @@ -88,9 +88,8 @@ class SLex # #---------------------------------------------------------------------- class Node - # if postproc no exist, this node is abstract node. - # if postproc isn't nil, this node is real node. - # (JP: postprocがなければ抽象ノード, nilじゃなければ具象ノード) + # if postproc is nil, this node is an abstract node. + # if postproc is non-nil, this node is a real node. def initialize(preproc = nil, postproc = nil) @Tree = {} @preproc = preproc @@ -159,11 +158,9 @@ class SLex # # chrs: String - # character array (JP: 一文字づつのArray) - # io It must have getc()/ungetc(), and ungetc() can be - # called any number of times. - # (JP:だだし, getc/ungetcが備わっていなければならない. - # さらに, ungetcは複数回可能でなくてはならない.) + # character array + # io must have getc()/ungetc(); and ungetc() must be + # able to be called arbitrary number of times. # def match(chrs, op = "") print "match>: ", chrs, "op:", op, "\n" if SLex.debug? diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 3550a758d0..68559a1173 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -12,8 +12,8 @@ module IRB class WorkSpace # create new workspace. - # (JP: 新たなworkspaceを作る. mainをselfとする. 省略したら, - # TOPLEVEL_BINDINGのmainをそのまま使う. ) + # set self to main if specified, otherwise inherit main + # from TOPLEVEL_BINDING. def initialize(*main) if IRB.conf[:SINGLE_IRB] @binding = TOPLEVEL_BINDING -- cgit v1.2.3