org.antlr.codegen.templates.Ruby.ASTDbg.stg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr-complete Show documentation
Show all versions of antlr-complete Show documentation
Complete distribution for ANTLR 3
@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