Lines Matching defs:CommonToken
59 This library provides a token implementation (see CommonToken). Additionally,
213 CommonToken = Struct.new( :type, :channel, :text, :input, :start,
216 =begin rdoc ANTLR3::CommonToken
224 CommonToken to track token-type names efficiently for debugging, inspection, and
226 named XYZ will have a base module named XYZ and a customized CommonToken
243 class CommonToken
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
345 ANTLR3::CommonToken). Token classes are presumed to have an #initialize method
357 ANTLR3::CommonToken
478 When a TokenScheme is created, it will define a subclass of ANTLR3::CommonToken
488 and a grammar-specific subclass of ANTLR3::CommonToken assigned to the constant
490 generic CommonToken
493 If you need to use a token class other than CommonToken, you can pass the class
495 dynamically-created CommonToken subclass.
504 tk_class ||= Class.new( ::ANTLR3::CommonToken )
519 ::ANTLR3::CommonToken.token_name( type )