|
ANTLR3C 3.3.1
|
Provides the debugging functions invoked by a recognizer built using the debug generator mode of the antlr tool. More...
#include <antlr3.h>
Provides the debugging functions invoked by a recognizer built using the debug generator mode of the antlr tool.
See antlr3debugeventlistener.h for documentation.
|
static |
References ack(), and ANTLR3_DEBUG_EVENT_LISTENER_struct::socket.
Referenced by ack(), handshake(), and transmit().


|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, addChild(), ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, and transmit().

| ANTLR3_API pANTLR3_DEBUG_EVENT_LISTENER antlr3DebugListenerNew | ( | ) |
Create and initialize a new debug event listener that can be connected to by ANTLRWorks and any other debugger via a socket.
References addChild(), ANTLR3_DEBUG_EVENT_LISTENER_struct::addChild, antlr3DebugListenerNew(), ANTLR3_DEBUG_EVENT_LISTENER_struct::becomeRoot, becomeRoot(), ANTLR3_DEBUG_EVENT_LISTENER_struct::beginBacktrack, beginBacktrack(), ANTLR3_DEBUG_EVENT_LISTENER_struct::beginResync, beginResync(), ANTLR3_DEBUG_EVENT_LISTENER_struct::commence, commence(), ANTLR3_DEBUG_EVENT_LISTENER_struct::consumeHiddenToken, consumeHiddenToken(), ANTLR3_DEBUG_EVENT_LISTENER_struct::consumeNode, consumeNode(), ANTLR3_DEBUG_EVENT_LISTENER_struct::consumeToken, consumeToken(), ANTLR3_DEBUG_EVENT_LISTENER_struct::createNode, createNode(), ANTLR3_DEBUG_EVENT_LISTENER_struct::createNodeTok, createNodeTok(), DEFAULT_DEBUGGER_PORT, ANTLR3_DEBUG_EVENT_LISTENER_struct::endBacktrack, endBacktrack(), ANTLR3_DEBUG_EVENT_LISTENER_struct::endResync, endResync(), ANTLR3_DEBUG_EVENT_LISTENER_struct::enterAlt, enterAlt(), ANTLR3_DEBUG_EVENT_LISTENER_struct::enterDecision, enterDecision(), ANTLR3_DEBUG_EVENT_LISTENER_struct::enterRule, enterRule(), ANTLR3_DEBUG_EVENT_LISTENER_struct::enterSubRule, enterSubRule(), ANTLR3_DEBUG_EVENT_LISTENER_struct::errorNode, errorNode(), ANTLR3_DEBUG_EVENT_LISTENER_struct::exitDecision, exitDecision(), ANTLR3_DEBUG_EVENT_LISTENER_struct::exitRule, exitRule(), ANTLR3_DEBUG_EVENT_LISTENER_struct::exitSubRule, exitSubRule(), ANTLR3_DEBUG_EVENT_LISTENER_struct::handshake, handshake(), ANTLR3_DEBUG_EVENT_LISTENER_struct::location, location(), ANTLR3_DEBUG_EVENT_LISTENER_struct::LT, LT(), ANTLR3_DEBUG_EVENT_LISTENER_struct::LTT, LTT(), ANTLR3_DEBUG_EVENT_LISTENER_struct::mark, mark(), ANTLR3_DEBUG_EVENT_LISTENER_struct::nilNode, nilNode(), ANTLR3_DEBUG_EVENT_LISTENER_struct::port, ANTLR3_DEBUG_EVENT_LISTENER_struct::protocol_version, ANTLR3_DEBUG_EVENT_LISTENER_struct::recognitionException, recognitionException(), ANTLR3_DEBUG_EVENT_LISTENER_struct::rewind, ANTLR3_DEBUG_EVENT_LISTENER_struct::rewindLast, rewindLast(), rewindMark(), ANTLR3_DEBUG_EVENT_LISTENER_struct::semanticPredicate, semanticPredicate(), ANTLR3_DEBUG_EVENT_LISTENER_struct::setTokenBoundaries, setTokenBoundaries(), ANTLR3_DEBUG_EVENT_LISTENER_struct::terminate, and terminate().
Referenced by antlr3DebugListenerNew(), antlr3DebugListenerNewPort(), and antlr3UnbufTreeNodeStreamNew().


| pANTLR3_DEBUG_EVENT_LISTENER antlr3DebugListenerNewPort | ( | ANTLR3_UINT32 | port | ) |
References antlr3DebugListenerNew(), antlr3DebugListenerNewPort(), and ANTLR3_DEBUG_EVENT_LISTENER_struct::port.
Referenced by antlr3DebugListenerNewPort().


|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, becomeRoot(), ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, and transmit().

|
static |
|
static |
|
static |
References commence().
Referenced by antlr3DebugListenerNew(), and commence().


|
static |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::chars, consumeHiddenToken(), ANTLR3_STRING_struct::insert8, serializeToken(), and transmit().
Referenced by antlr3DebugListenerNew(), and consumeHiddenToken().


|
static |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::chars, consumeNode(), ANTLR3_STRING_struct::insert8, serializeNode(), ANTLR3_DEBUG_EVENT_LISTENER_struct::tokenString, ANTLR3_STRING_struct::toUTF8, and transmit().
Referenced by antlr3DebugListenerNew(), and consumeNode().


|
static |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::chars, consumeToken(), ANTLR3_STRING_struct::insert8, serializeToken(), and transmit().
Referenced by antlr3DebugListenerNew(), and consumeToken().


|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::addi, ANTLR3_STRING_struct::chars, createNode(), ANTLR3_STRING_struct::factory, ANTLR3_BASE_TREE_ADAPTOR_struct::getText, ANTLR3_BASE_TREE_ADAPTOR_struct::getType, ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, ANTLR3_DEBUG_EVENT_LISTENER_struct::grammarFileName, ANTLR3_STRING_FACTORY_struct::newSize, serializeText(), ANTLR3_STRING_struct::set8, ANTLR3_DEBUG_EVENT_LISTENER_struct::tokenString, ANTLR3_STRING_struct::toUTF8, and transmit().
Referenced by antlr3DebugListenerNew(), and createNode().


|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, createNodeTok(), ANTLR3_COMMON_TOKEN_struct::getTokenIndex, ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, and transmit().
Referenced by antlr3DebugListenerNew(), and createNodeTok().


|
static |
|
static |
|
static |
References enterAlt(), and transmit().
Referenced by antlr3DebugListenerNew(), and enterAlt().


|
static |
References enterDecision(), and transmit().
Referenced by antlr3DebugListenerNew(), and enterDecision().


|
static |
References enterRule(), and transmit().
Referenced by antlr3DebugListenerNew(), and enterRule().


|
static |
References enterSubRule(), and transmit().
Referenced by antlr3DebugListenerNew(), and enterSubRule().


|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::addi, ANTLR3_TOKEN_INVALID, ANTLR3_STRING_struct::chars, errorNode(), ANTLR3_STRING_struct::factory, ANTLR3_BASE_TREE_ADAPTOR_struct::getText, ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, ANTLR3_DEBUG_EVENT_LISTENER_struct::grammarFileName, ANTLR3_STRING_FACTORY_struct::newSize, serializeText(), ANTLR3_STRING_struct::set8, ANTLR3_DEBUG_EVENT_LISTENER_struct::tokenString, ANTLR3_STRING_struct::toUTF8, and transmit().

|
static |
References exitDecision(), and transmit().
Referenced by antlr3DebugListenerNew(), and exitDecision().


|
static |
References exitRule(), and transmit().
Referenced by antlr3DebugListenerNew(), and exitRule().


|
static |
References exitSubRule(), and transmit().
Referenced by antlr3DebugListenerNew(), and exitSubRule().


|
static |
Connection structure with which to wait and accept a connection from a debugger.
References ack(), ANTLR3_CLOSESOCKET, ANTLR3_FALSE, ANTLR3_TRUE, ANTLR3_STRING_struct::chars, ANTLR3_DEBUG_EVENT_LISTENER_struct::grammarFileName, handshake(), ANTLR3_DEBUG_EVENT_LISTENER_struct::initialized, INVALID_SOCKET, ANTLR3_DEBUG_EVENT_LISTENER_struct::port, ANTLR3_DEBUG_EVENT_LISTENER_struct::protocol_version, ANTLR3_DEBUG_EVENT_LISTENER_struct::socket, and sockSend().
Referenced by antlr3DebugListenerNew(), and handshake().


|
static |
References location(), and transmit().
Referenced by antlr3DebugListenerNew(), and location().


|
static |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::insert8, ANTLR3_STRING_struct::inserti, LT(), serializeToken(), and transmit().
Referenced by antlr3DebugListenerNew(), and LT().


|
static |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::insert8, ANTLR3_STRING_struct::inserti, LTT(), serializeNode(), ANTLR3_DEBUG_EVENT_LISTENER_struct::tokenString, ANTLR3_STRING_struct::toUTF8, and transmit().
Referenced by antlr3DebugListenerNew(), and LTT().


|
static |
|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, nilNode(), and transmit().

|
static |
References ANTLR3_EXCEPTION_struct::charPositionInLine, ANTLR3_EXCEPTION_struct::index, ANTLR3_EXCEPTION_struct::line, ANTLR3_EXCEPTION_struct::name, recognitionException(), and transmit().
Referenced by antlr3DebugListenerNew(), and recognitionException().


|
static |
|
static |
|
static |
References ANTLR3_TRUE, semanticPredicate(), and transmit().
Referenced by antlr3DebugListenerNew(), and semanticPredicate().


| pANTLR3_STRING serializeNode | ( | pANTLR3_DEBUG_EVENT_LISTENER | delboy, |
| pANTLR3_BASE_TREE | node ) |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::addi, ANTLR3_STRING_struct::factory, ANTLR3_COMMON_TOKEN_struct::getCharPositionInLine, ANTLR3_COMMON_TOKEN_struct::getLine, ANTLR3_BASE_TREE_ADAPTOR_struct::getText, ANTLR3_BASE_TREE_ADAPTOR_struct::getToken, ANTLR3_BASE_TREE_ADAPTOR_struct::getTokenStartIndex, ANTLR3_BASE_TREE_ADAPTOR_struct::getType, ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, ANTLR3_DEBUG_EVENT_LISTENER_struct::grammarFileName, ANTLR3_STRING_FACTORY_struct::newSize, serializeNode(), serializeText(), ANTLR3_STRING_struct::set, ANTLR3_DEBUG_EVENT_LISTENER_struct::tokenString, and ANTLR3_STRING_struct::toUTF8.
Referenced by consumeNode(), LTT(), and serializeNode().


| void serializeText | ( | pANTLR3_STRING | buffer, |
| pANTLR3_STRING | text ) |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::append, ANTLR3_STRING_struct::charAt, ANTLR3_STRING_struct::len, and serializeText().
Referenced by createNode(), errorNode(), serializeNode(), serializeText(), and serializeToken().


| pANTLR3_STRING serializeToken | ( | pANTLR3_DEBUG_EVENT_LISTENER | delboy, |
| pANTLR3_COMMON_TOKEN | t ) |
References ANTLR3_STRING_struct::addc, ANTLR3_STRING_struct::addi, ANTLR3_STRING_struct::factory, ANTLR3_COMMON_TOKEN_struct::getChannel, ANTLR3_COMMON_TOKEN_struct::getCharPositionInLine, ANTLR3_COMMON_TOKEN_struct::getLine, ANTLR3_COMMON_TOKEN_struct::getText, ANTLR3_COMMON_TOKEN_struct::getTokenIndex, ANTLR3_COMMON_TOKEN_struct::getType, ANTLR3_DEBUG_EVENT_LISTENER_struct::grammarFileName, ANTLR3_STRING_FACTORY_struct::newSize, serializeText(), serializeToken(), ANTLR3_STRING_struct::set, ANTLR3_DEBUG_EVENT_LISTENER_struct::tokenString, and ANTLR3_STRING_struct::toUTF8.
Referenced by consumeHiddenToken(), consumeToken(), LT(), and serializeToken().


|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::adaptor, ANTLR3_BASE_TREE_ADAPTOR_struct::getUniqueID, setTokenBoundaries(), and transmit().

|
static |
References ANTLR3_FALSE, ANTLR3_TRUE, and sockSend().
Referenced by handshake(), sockSend(), terminate(), and transmit().


|
static |
References ANTLR3_DEBUG_EVENT_LISTENER_struct::socket, sockSend(), and terminate().
Referenced by antlr3DebugListenerNew(), and terminate().


|
static |
References ack(), ANTLR3_DEBUG_EVENT_LISTENER_struct::socket, sockSend(), and transmit().
Referenced by addChild(), becomeRoot(), beginBacktrack(), beginResync(), consumeHiddenToken(), consumeNode(), consumeToken(), createNode(), createNodeTok(), endBacktrack(), endResync(), enterAlt(), enterDecision(), enterRule(), enterSubRule(), errorNode(), exitDecision(), exitRule(), exitSubRule(), location(), LT(), LTT(), mark(), nilNode(), recognitionException(), rewindLast(), rewindMark(), semanticPredicate(), setTokenBoundaries(), and transmit().

