|
ANTLR3C 3.3.1
|
#include <antlr3.h>
| ANTLR3_API pANTLR3_COMMON_TOKEN antlr3CommonTokenNew | ( | ANTLR3_UINT32 | ttype | ) |
References antlr3CommonTokenNew(), newToken(), and ANTLR3_COMMON_TOKEN_struct::setType.
Referenced by antlr3CommonTokenNew(), antlr3CommonTreeNodeStreamNew(), newDownNode(), and newUpNode().


| ANTLR3_API void antlr3SetTokenAPI | ( | pANTLR3_COMMON_TOKEN | token | ) |
References antlr3SetTokenAPI(), ANTLR3_COMMON_TOKEN_struct::getChannel, getChannel(), ANTLR3_COMMON_TOKEN_struct::getCharPositionInLine, getCharPositionInLine(), ANTLR3_COMMON_TOKEN_struct::getLine, getLine(), ANTLR3_COMMON_TOKEN_struct::getStartIndex, getStartIndex(), ANTLR3_COMMON_TOKEN_struct::getStopIndex, getStopIndex(), ANTLR3_COMMON_TOKEN_struct::getText, getText(), ANTLR3_COMMON_TOKEN_struct::getTokenIndex, getTokenIndex(), ANTLR3_COMMON_TOKEN_struct::getType, getType(), ANTLR3_COMMON_TOKEN_struct::setChannel, setChannel(), ANTLR3_COMMON_TOKEN_struct::setCharPositionInLine, setCharPositionInLine(), ANTLR3_COMMON_TOKEN_struct::setLine, setLine(), ANTLR3_COMMON_TOKEN_struct::setStartIndex, setStartIndex(), ANTLR3_COMMON_TOKEN_struct::setStopIndex, setStopIndex(), ANTLR3_COMMON_TOKEN_struct::setText, setText(), ANTLR3_COMMON_TOKEN_struct::setText8, setText8(), ANTLR3_COMMON_TOKEN_struct::setTokenIndex, setTokenIndex(), ANTLR3_COMMON_TOKEN_struct::setType, setType(), ANTLR3_COMMON_TOKEN_struct::toString, and toString().
Referenced by antlr3LexerNew(), antlr3SetTokenAPI(), antlr3TokenFactoryNew(), newPoolToken(), and newToken().


| ANTLR3_API pANTLR3_TOKEN_FACTORY antlr3TokenFactoryNew | ( | pANTLR3_INPUT_STREAM | input | ) |
References ANTLR3_TRUE, antlr3SetTokenAPI(), antlr3TokenFactoryNew(), ANTLR3_TOKEN_FACTORY_struct::close, factoryClose(), ANTLR3_COMMON_TOKEN_struct::factoryMade, factoryReset(), ANTLR3_TOKEN_FACTORY_struct::maxPool, newPool(), newPoolToken(), ANTLR3_TOKEN_FACTORY_struct::newToken, ANTLR3_TOKEN_FACTORY_struct::pools, ANTLR3_TOKEN_FACTORY_struct::reset, ANTLR3_TOKEN_FACTORY_struct::setInputStream, setInputStream(), ANTLR3_TOKEN_FACTORY_struct::thisPool, and ANTLR3_TOKEN_FACTORY_struct::unTruc.
Referenced by ANTLR3_TREE_ADAPTORNew(), antlr3TokenFactoryNew(), getMissingSymbol(), and setCharStream().


|
static |
References ANTLR3_FACTORY_POOL_SIZE, ANTLR3_COMMON_TOKEN_struct::custom, factoryClose(), ANTLR3_COMMON_TOKEN_struct::freeCustom, ANTLR3_TOKEN_FACTORY_struct::nextToken, ANTLR3_TOKEN_FACTORY_struct::pools, and ANTLR3_TOKEN_FACTORY_struct::thisPool.
Referenced by antlr3ArboretumNew(), antlr3TokenFactoryNew(), factoryClose(), and factoryClose().


|
static |
References factoryReset(), newPool(), and ANTLR3_TOKEN_FACTORY_struct::thisPool.
Referenced by antlr3TokenFactoryNew(), and factoryReset().


|
static |
References ANTLR3_COMMON_TOKEN_struct::channel, and getChannel().
Referenced by antlr3SetTokenAPI(), and getChannel().


|
static |
References ANTLR3_COMMON_TOKEN_struct::charPosition.
Referenced by antlr3SetTokenAPI().

|
static |
References ANTLR3_COMMON_TOKEN_struct::line.
Referenced by antlr3SetTokenAPI().

|
static |
References ANTLR3_INPUT_STREAM_struct::data, getStartIndex(), ANTLR3_COMMON_TOKEN_struct::input, and ANTLR3_COMMON_TOKEN_struct::start.
Referenced by antlr3SetTokenAPI(), and getStartIndex().


|
static |
References getStopIndex(), and ANTLR3_COMMON_TOKEN_struct::stop.
Referenced by antlr3SetTokenAPI(), and getStopIndex().


|
static |
Contains the default implementation of the common token used within java.
Custom tokens should create this structure and then append to it using the custom pointer to install their own structure and API.
References ANTLR3_TEXT_CHARP, ANTLR3_TEXT_STRING, ANTLR3_TOKEN_EOF, ANTLR3_COMMON_TOKEN_struct::getStartIndex, ANTLR3_COMMON_TOKEN_struct::getStopIndex, getText(), ANTLR3_COMMON_TOKEN_struct::input, ANTLR3_STRING_FACTORY_struct::newStr8, ANTLR3_COMMON_TOKEN_struct::strFactory, ANTLR3_INPUT_STREAM_struct::substr, ANTLR3_COMMON_TOKEN_struct::textState, ANTLR3_COMMON_TOKEN_struct::tokText, and ANTLR3_COMMON_TOKEN_struct::type.

|
static |
References getTokenIndex(), and ANTLR3_COMMON_TOKEN_struct::index.
Referenced by antlr3SetTokenAPI(), and getTokenIndex().


|
static |
References getType(), and ANTLR3_COMMON_TOKEN_struct::type.

|
static |
References ANTLR3_FACTORY_POOL_SIZE, ANTLR3_FALSE, ANTLR3_TRUE, ANTLR3_TOKEN_FACTORY_struct::maxPool, newPool(), ANTLR3_TOKEN_FACTORY_struct::nextToken, ANTLR3_TOKEN_FACTORY_struct::pools, and ANTLR3_TOKEN_FACTORY_struct::thisPool.

|
static |
References ANTLR3_FACTORY_POOL_SIZE, ANTLR3_TRUE, antlr3SetTokenAPI(), ANTLR3_COMMON_TOKEN_struct::factoryMade, ANTLR3_COMMON_TOKEN_struct::input, ANTLR3_TOKEN_FACTORY_struct::input, newPool(), newPoolToken(), ANTLR3_TOKEN_FACTORY_struct::nextToken, ANTLR3_TOKEN_FACTORY_struct::pools, ANTLR3_COMMON_TOKEN_struct::setStartIndex, ANTLR3_COMMON_TOKEN_struct::strFactory, ANTLR3_INPUT_STREAM_struct::strFactory, and ANTLR3_TOKEN_FACTORY_struct::thisPool.
Referenced by antlr3TokenFactoryNew(), and newPoolToken().


|
static |
References ANTLR3_FALSE, antlr3SetTokenAPI(), ANTLR3_COMMON_TOKEN_struct::factoryMade, and newToken().
Referenced by antlr3CommonTokenNew(), createToken(), createTokenFromToken(), and newToken().


|
static |
References ANTLR3_COMMON_TOKEN_struct::channel, and setChannel().
Referenced by antlr3SetTokenAPI(), and setChannel().


|
static |
References ANTLR3_COMMON_TOKEN_struct::charPosition, and setCharPositionInLine().
Referenced by antlr3SetTokenAPI(), and setCharPositionInLine().


|
static |
References ANTLR3_COMMON_TOKEN_struct::input, ANTLR3_TOKEN_FACTORY_struct::input, setInputStream(), ANTLR3_COMMON_TOKEN_struct::strFactory, ANTLR3_INPUT_STREAM_struct::strFactory, and ANTLR3_TOKEN_FACTORY_struct::unTruc.
Referenced by antlr3TokenFactoryNew(), and setInputStream().


|
static |
References ANTLR3_COMMON_TOKEN_struct::line, and setLine().
Referenced by antlr3SetTokenAPI(), and setLine().


|
static |
References setStartIndex(), and ANTLR3_COMMON_TOKEN_struct::start.
Referenced by antlr3SetTokenAPI(), and setStartIndex().


|
static |
References setStopIndex(), and ANTLR3_COMMON_TOKEN_struct::stop.
Referenced by antlr3SetTokenAPI(), and setStopIndex().


|
static |
Install the supplied text string as teh text for the token.
The method assumes that the existing text (if any) was created by a factory and so does not attempt to release any memory it is using.Text not created by a string fctory (not advised) should be released prior to this call.
References ANTLR3_TEXT_STRING, setText(), ANTLR3_COMMON_TOKEN_struct::textState, and ANTLR3_COMMON_TOKEN_struct::tokText.

|
static |
References ANTLR3_TEXT_CHARP, ANTLR3_TEXT_NONE, setText8(), ANTLR3_COMMON_TOKEN_struct::textState, and ANTLR3_COMMON_TOKEN_struct::tokText.

|
static |
References ANTLR3_COMMON_TOKEN_struct::index, and setTokenIndex().
Referenced by antlr3SetTokenAPI(), and setTokenIndex().


|
static |
References setType(), and ANTLR3_COMMON_TOKEN_struct::type.

|
static |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::addi, ANTLR3_TOKEN_DEFAULT_CHANNEL, ANTLR3_STRING_struct::append8, ANTLR3_STRING_struct::appendS, ANTLR3_STRING_struct::factory, ANTLR3_COMMON_TOKEN_struct::getChannel, ANTLR3_COMMON_TOKEN_struct::getCharPositionInLine, ANTLR3_COMMON_TOKEN_struct::getLine, ANTLR3_COMMON_TOKEN_struct::getStartIndex, ANTLR3_COMMON_TOKEN_struct::getStopIndex, ANTLR3_COMMON_TOKEN_struct::getText, ANTLR3_COMMON_TOKEN_struct::getTokenIndex, ANTLR3_STRING_FACTORY_struct::newRaw, toString(), and ANTLR3_COMMON_TOKEN_struct::type.
Referenced by antlr3CommonTokenStreamNew(), antlr3CommonTreeNodeStreamNew(), antlr3CommonTreeNodeStreamNewStream(), antlr3SetCTAPI(), antlr3SetTokenAPI(), toString(), toString(), toString(), and toString().

