All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.antlr.codegen.templates.Ruby.ASTDbg.stg Maven / Gradle / Ivy

There is a newer version: 3.5.3
Show newest version
@parserBody.additionalMembers() ::= <<
def self.return_scope_members
  super.push( :tree )
end

attr_reader :adaptor
def adaptor=( adaptor )
  @adaptor = 
    adaptor.is_a?( ANTLR3::Debug::TreeAdaptor ) ? adaptor : 
      ANTLR3::Debug::TreeAdaptor.wrap( adaptor, @debug_listener )
  .adaptor = @adaptor}; separator="\n">
end

alias tree_adaptor adaptor
alias tree_adaptor= adaptor=
>>


createListenerAndHandshake() ::= <<
options[ :debug_listener ] ||= begin
  port = options[ :port ]
  log  = options[ :log ]
  proxy = ANTLR3::Debug::EventSocketProxy.new( self, 
    :adaptor => adaptor,
    :log     => log, 
    :port    => port
  )
  proxy.handshake
  proxy
end
>>

@parserConstructor.init() ::= "self.adaptor = adaptor"

@newDelegate.delegateOptions() ::= ", :adaptor => adaptor"

@rewriteElement.pregen() ::= "@debug_listener.location( ,  )"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy