Home | History | Annotate | Download | only in antlr3

Lines Matching defs:new

213 CommonToken = Struct.new( :type, :channel, :text, :input, :start,
259 new( *args )
264 new(
288 EOF_TOKEN = CommonToken.new( EOF ).freeze
289 INVALID_TOKEN = CommonToken.new( INVALID_TOKEN_TYPE ).freeze
290 SKIP_TOKEN = CommonToken.new( INVALID_TOKEN_TYPE ).freeze
329 CommonTokenStream.new( self, options ) { | t, stream | yield( t, stream ) }
331 CommonTokenStream.new( self, options )
363 token_class.new( *args ) do |*targs|
367 token_class.new( *args )
416 <tt>TokenScheme.new(tk_class = nil) { ... module-level code ...}</tt>, which
418 Module#module_eval. Before evaluating the block, <tt>.new</tt> will setup the
422 2. add a new constant, TOKEN_NAMES, which is a hash that maps types to names
423 3. dynamically populate the new scheme module with a couple instance methods
424 4. include ANTLR3::Constants in the new scheme module
452 TokenData = ANTLR3::TokenScheme.new do
494 as a parameter to TokenScheme.new, which will be used in place of the
502 def self.new( tk_class = nil, &body )
504 tk_class ||= Class.new( ::ANTLR3::CommonToken )
536 new( tk_class ) do
571 raise NameError.new(
572 "new token type definition ``#{ name } = #{ value }'' conflicts " <<
618 error = NameError.new(