D | rewrite.rb | 39 …at provides simple stream editing functionality. By creating <i>rewrite programs</i>, new text out… 362 attr_reader :programs accessor in ANTLR3.TokenRewriteStream 367 @programs = Hash.new do |programs, name| 369 programs[ name ] = RewriteProgram.new( self, name ) 370 else programs[ name.to_s ] 378 program = @programs[ program_name ] 387 return @programs[ name ] 391 @programs.delete( name ) 401 @programs[ 'default' ].insert_before( *args ) 405 @programs[ 'default' ].insert_after( *args ) [all …]
|