Property | Type | Description | |
---|---|---|---|
EmptySource | ICharStream>.Tuple | ||
charPositionInLine | int | ||
index | int | ||
start | int | ||
stop | int |
Method | Description | |
---|---|---|
CommonToken ( IToken oldToken ) : System |
Constructs a new CommonToken as a copy of another IToken . If oldToken is also a CommonToken instance, the newly constructed token will share a reference to the Text() field and the Tuple{T1, T2} stored in source . Otherwise, Text() will be assigned the result of calling Text() , and source will be constructed from the result of IToken.TokenSource() and IToken.InputStream() .
|
|
CommonToken ( ICharStream>.Tuple |
||
CommonToken ( int type ) : System |
Constructs a new CommonToken with the specified token type.
|
|
CommonToken ( int type, string text ) : System |
Constructs a new CommonToken with the specified token type and text.
|
|
ToString ( ) : string |
public CommonToken ( IToken oldToken ) : System | ||
oldToken | IToken | The token to copy. |
return | System |
public CommonToken ( ICharStream>.Tuple |
||
source | ICharStream>.Tuple | |
type | int | |
channel | int | |
start | int | |
stop | int | |
return | System |
public CommonToken ( int type ) : System | ||
type | int | The token type. |
return | System |
public CommonToken ( int type, string text ) : System | ||
type | int | The token type. |
text | string | The text of the token. |
return | System |