Method | Description | |
---|---|---|
FromTokenNames ( string tokenNames ) : IVocabulary |
Returns a Vocabulary instance from the specified set of token names. This method acts as a compatibility layer for the single tokenNames array generated by previous releases of ANTLR. The resulting vocabulary instance returns
|
|
Vocabulary ( string literalNames, string symbolicNames ) : System |
Constructs a new instance of Vocabulary from the specified literal and symbolic token names.
|
|
Vocabulary ( string literalNames, string symbolicNames, string displayNames ) : System |
Constructs a new instance of Vocabulary from the specified literal, symbolic, and display token names.
|
Method | Description | |
---|---|---|
GetDisplayName ( int tokenType ) : string | ||
GetLiteralName ( int tokenType ) : string | ||
GetSymbolicName ( int tokenType ) : string |
public static FromTokenNames ( string tokenNames ) : IVocabulary | ||
tokenNames | string |
/// The token names, or
/// |
return | IVocabulary |
public Vocabulary ( string literalNames, string symbolicNames ) : System | ||
literalNames | string |
/// The literal names assigned to tokens, or
/// |
symbolicNames | string |
/// The symbolic names assigned to tokens, or
/// |
return | System |
public Vocabulary ( string literalNames, string symbolicNames, string displayNames ) : System | ||
literalNames | string |
/// The literal names assigned to tokens, or
/// |
symbolicNames | string |
/// The symbolic names assigned to tokens, or
/// |
displayNames | string |
/// The display names assigned to tokens, or
/// |
return | System |