class ANTLR3::TokenRewriteStream

TokenRewriteStream is a specialized form of CommonTokenStream that provides simple stream editing functionality. By creating rewrite programs, new text output can be created based upon the tokens in the stream. The basic token stream itself is preserved, and text output is rendered on demand using the to_s method.

Public Class Methods

new( token_source, options = {} ) click to toggle source
Calls superclass method ANTLR3::CommonTokenStream::new
# File lib/antlr3/streams/rewrite.rb, line 428
def initialize( token_source, options = {} )
  super( token_source, options )
  initialize_rewrite
end