diff options
Diffstat (limited to 'lib/racc/parserfilegenerator.rb')
-rw-r--r-- | lib/racc/parserfilegenerator.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/racc/parserfilegenerator.rb b/lib/racc/parserfilegenerator.rb index 068c902e9c..1caac10d9e 100644 --- a/lib/racc/parserfilegenerator.rb +++ b/lib/racc/parserfilegenerator.rb @@ -1,6 +1,6 @@ #-- # -# $Id: fff07ebfd582f8dbc845e424908cb9f41f8bf42f $ +# # # Copyright (c) 1999-2006 Minero Aoki # @@ -238,7 +238,7 @@ module Racc end def unique_separator(id) - sep = "...end #{id}/module_eval..." + sep = String.new "...end #{id}/module_eval..." while @used_separator.key?(sep) sep.concat sprintf('%02x', rand(255)) end @@ -332,7 +332,7 @@ module Racc # TODO: this can be made a LOT more clean with a simple split/map sep = "\n" nsep = ",\n" - buf = '' + buf = String.new com = '' ncom = ',' co = com @@ -342,7 +342,7 @@ module Racc if buf.size > 66 @f.print sep; sep = nsep @f.print "'", buf, "'" - buf = '' + buf = String.new co = com end end |