Home
last modified time | relevance | path

Searched refs:strFactory (Results 1 – 19 of 19) sorted by relevance

/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3commontreeadaptor.c84 ANTLR3_TREE_ADAPTORNew(pANTLR3_STRING_FACTORY strFactory) in ANTLR3_TREE_ADAPTORNew() argument
153 cta->arboretum = antlr3ArboretumNew(strFactory); in ANTLR3_TREE_ADAPTORNew()
160 cta->baseAdaptor.tokenFactory->unTruc.strFactory = strFactory; in ANTLR3_TREE_ADAPTORNew()
164 cta->baseAdaptor.strFactory = strFactory; in ANTLR3_TREE_ADAPTORNew()
177 ANTLR3_TREE_ADAPTORDebugNew(pANTLR3_STRING_FACTORY strFactory, pANTLR3_DEBUG_EVENT_LISTENER debugge… in ANTLR3_TREE_ADAPTORDebugNew() argument
183 ta = ANTLR3_TREE_ADAPTORNew(strFactory); in ANTLR3_TREE_ADAPTORDebugNew()
303 newToken->strFactory = adaptor->strFactory; in createToken()
351 …newToken->tokText.text = adaptor->strFactory->newPtr(adaptor->strFactory, text->chars, text->l… in createTokenFromToken()
Dantlr3commontoken.c143 factory->unTruc.strFactory = input->strFactory; in setInputStream()
147 factory->unTruc.strFactory = NULL; in setInputStream()
222 token->strFactory = factory->input == NULL ? NULL : factory->input->strFactory; in newPoolToken()
369 if (token->strFactory != NULL) in getText()
371 …token->tokText.text = token->strFactory->newStr8(token->strFactory, (pANTLR3_UINT8)token->tokText.… in getText()
389 token->tokText.text = token->strFactory->newStr8(token->strFactory, (pANTLR3_UINT8)"<EOF>"); in getText()
391 token->tokText.text->factory = token->strFactory; in getText()
Dantlr3commontreenodestream.c120 stream = antlr3CommonTreeNodeStreamNew(tree->strFactory, hint); in antlr3CommonTreeNodeStreamNewTree()
248 inStream->UP.token->strFactory = stream->stringFactory; in antlr3CommonTreeNodeStreamNewStream()
250 inStream->DOWN.token->strFactory = stream->stringFactory; in antlr3CommonTreeNodeStreamNewStream()
252 inStream->EOF_NODE.token->strFactory = stream->stringFactory; in antlr3CommonTreeNodeStreamNewStream()
254 inStream->INVALID_NODE.token->strFactory= stream->stringFactory; in antlr3CommonTreeNodeStreamNewStream()
270 antlr3CommonTreeNodeStreamNew(pANTLR3_STRING_FACTORY strFactory, ANTLR3_UINT32 hint) in antlr3CommonTreeNodeStreamNew() argument
286 stream->stringFactory = strFactory; in antlr3CommonTreeNodeStreamNew()
290 stream->adaptor = ANTLR3_TREE_ADAPTORNew(strFactory); in antlr3CommonTreeNodeStreamNew()
391 token->strFactory = strFactory; in antlr3CommonTreeNodeStreamNew()
397 token->strFactory = strFactory; in antlr3CommonTreeNodeStreamNew()
[all …]
Dantlr3commontree.c65 antlr3ArboretumNew(pANTLR3_STRING_FACTORY strFactory) in antlr3ArboretumNew() argument
117 factory->unTruc.baseTree.strFactory = strFactory; in antlr3ArboretumNew()
196 tree->baseTree.strFactory = factory->unTruc.baseTree.strFactory; in newPoolTree()
495 nilNode = tree->strFactory->newPtr(tree->strFactory, (pANTLR3_UINT8)"nil", 3); in toString()
Dantlr3inputstream.c129 input->strFactory = antlr3StringFactoryNew(input->encoding); in antlr38BitSetupStream()
215 if (input->strFactory != NULL) in antlr3InputClose()
217 input->strFactory->close(input->strFactory); in antlr3InputClose()
299 …input->istream->streamName = input->strFactory->newStr(input->strFactory, name == NULL ? (pANTLR3_… in antlr38BitReuse()
605 …return input->strFactory->newPtr(input->strFactory, (pANTLR3_UINT8)start, (ANTLR3_UINT32)(stop - … in antlr38BitSubstr()
708 input->strFactory = antlr3StringFactoryNew(input->encoding); in antlr3UTF16SetupStream()
1048 …return input->strFactory->newPtr(input->strFactory, (pANTLR3_UINT8)start, ((ANTLR3_UINT32_CAST(st… in antlr3UTF16Substr()
1506 input->strFactory = antlr3StringFactoryNew(input->encoding); in antlr3UTF32SetupStream()
1622 …return input->strFactory->newPtr(input->strFactory, (pANTLR3_UINT8)start, ((ANTLR3_UINT32_CAST(st… in antlr3UTF32Substr()
1756 input->strFactory = antlr3StringFactoryNew(input->encoding); in antlr3UTF8SetupStream()
[all …]
Dantlr3filestream.c81 input->istream->streamName = input->strFactory->newStr8(input->strFactory, fileName); in antlr3FileStreamNew()
119 input->istream->streamName = input->strFactory->newStr8(input->strFactory, name); in antlr3StringStreamNew()
Dantlr3lexer.c122 lexer->rec->state->tokSource->strFactory = NULL; in antlr3LexerNew()
153 specialT->strFactory = NULL; in antlr3LexerNew()
166 specialT->strFactory = NULL; in antlr3LexerNew()
521 if (lexer->rec->state->tokSource->strFactory == NULL) in setCharStream()
523 lexer->rec->state->tokSource->strFactory = input->strFactory; in setCharStream()
528 if (lexer->rec->state->tokSource->eofToken.strFactory == NULL) in setCharStream()
530 lexer->rec->state->tokSource->eofToken.strFactory = input->strFactory; in setCharStream()
Dantlr3basetree.c76 tree->strFactory = NULL; in antlr3BaseTreeNew()
302 string = tree->strFactory->newRaw(tree->strFactory); in toStringTree()
Dantlr3basetreeadaptor.c368 dotSpec = adaptor->strFactory->newStr8 in makeDot()
371 adaptor->strFactory, in makeDot()
Dantlr3tokenstream.c562 string = tsource->strFactory->newRaw(tsource->strFactory); in toStringSS()
Dantlr3baserecognizer.c378 …reamName = ((pANTLR3_BASE_TREE)(ex->token))->strFactory->newStr(((pANTLR3_BASE_TREE)(ex->token))-> in antlr3RecognitionExceptionNew()
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3defs.h580 …TLR3_BASE_TREE_ADAPTOR ANTLR3_TREE_ADAPTORNew (pANTLR3_STRING_FACTORY strFactory);
581 …DAPTOR ANTLR3_TREE_ADAPTORDebugNew (pANTLR3_STRING_FACTORY strFactory, pANTLR3_DEBUG_E…
598 …DE_STREAM antlr3CommonTreeNodeStreamNew (pANTLR3_STRING_FACTORY strFactory, ANTLR3_UINT32 h…
600 …DE_STREAM antlr3UnbufTreeNodeStreamNew (pANTLR3_STRING_FACTORY strFactory, ANTLR3_UINT32 h…
Dantlr3input.h81 pANTLR3_STRING_FACTORY strFactory; member
Dantlr3basetree.h76 pANTLR3_STRING_FACTORY strFactory; member
Dantlr3tokenstream.h65 pANTLR3_STRING_FACTORY strFactory; member
Dantlr3commontoken.h123 pANTLR3_STRING_FACTORY strFactory; member
Dantlr3basetreeadaptor.h58 pANTLR3_STRING_FACTORY strFactory; member
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/
DDbg.stg114 …proxy->grammarFileName = INPUT->tokenSource->strFactory->newStr8(INPUT->tokenSource->strFactory, (…
DAST.stg44 ADAPTOR = ANTLR3_TREE_ADAPTORNew(instream->tstream->tokenSource->strFactory);<\n>