Home
last modified time | relevance | path

Searched refs:name_or_value (Results 1 – 1 of 1) sorted by relevance

/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
Dtoken.rb633 def token_defined?( name_or_value ) argument
635 when Integer then token_names.has_key?( name_or_value )
636 else const_defined?( name_or_value.to_s )
640 def []( name_or_value ) argument
641 case name_or_value
642 when Integer then token_names.fetch( name_or_value, nil )
643 else const_get( name_or_value.to_s ) rescue token_names.index( name_or_value )