Home | History | Annotate | Download | only in antlr3

Lines Matching refs:tt

231 * <tt>type</tt>
232 * <tt>channel</tt>
233 * <tt>text</tt>
234 * <tt>input</tt>
235 * <tt>start</tt>
236 * <tt>stop</tt>
237 * <tt>index</tt>
238 * <tt>line</tt>
239 * <tt>column</tt>
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
432 <tt>TokenScheme#define_token(name_symbol, int_value)</tt> adds a constant
433 definition <tt>name_symbol</tt> with the value <tt>int_value</tt>. It is
434 essentially like <tt>Module#const_set</tt>, except it forbids constant
436 inverse type-to-name map to its own <tt>TOKEN_NAMES</tt> table.
437 <tt>TokenScheme#define_tokens</tt> is a convenience method for defining many
440 <tt>TokenScheme#register_name(value, name_string)</tt> specifies a custom
443 example, if you refer to the literal <tt>'='</tt> in some parser rule in your
445 like <tt>T__<i>x</i></tt>, where <tt><i>x</i></tt> is the type's integer value.
447 special name definition for type value <tt><i>x</i></tt> with the string
448 <tt>"'='"</tt>.
481 method <tt>token_name(type)</tt>, instances of the token class are now able to
482 provide their type names. The Token method <tt>name</tt> uses the
483 <tt>token_name</tt> method to provide the type name as if it were a simple