/external/antlr/runtime/C/src/ |
D | antlr3filestream.c | 145 isBigEndian = ANTLR3_TRUE; in setupInputStream() 194 antlr3UTF16SetupStream(input, isBigEndian, ANTLR3_TRUE); in setupInputStream() 231 antlr3UTF32SetupStream(input, isBigEndian, ANTLR3_TRUE); in setupInputStream() 257 antlr3UTF16SetupStream(input, isBigEndian, ANTLR3_TRUE); in setupInputStream() 271 antlr3UTF32SetupStream(input, isBigEndian, ANTLR3_TRUE); in setupInputStream() 383 input->isAllocated = ANTLR3_TRUE; in antlr3read8Bit()
|
D | antlr3rewritestreams.c | 77 if (stream->elements->factoryMade == ANTLR3_TRUE) in freeRS() 90 stream->freeElements = ANTLR3_TRUE; in freeRS() 139 if (stream->elements->factoryMade == ANTLR3_TRUE) in freeNodeRS() 149 stream->freeElements = ANTLR3_TRUE; in freeNodeRS() 177 if (stream->freeElements == ANTLR3_TRUE && stream->elements != NULL) in expungeRS() 297 …s != NULL && stream->elements->factoryMade == ANTLR3_FALSE && stream->freeElements == ANTLR3_TRUE ) in antlr3RewriteRuleElementStreamNewAEV() 512 stream->dirty = ANTLR3_TRUE; in reset() 552 stream->freeElements = ANTLR3_TRUE; // We 'ummed it, so we play it son. in add() 755 return ANTLR3_TRUE; in hasNext() 795 if (stream->dirty == ANTLR3_TRUE || (stream->cursor > n && n == 1)) in nextNode()
|
D | antlr3baserecognizer.c | 399 recognizer->state->error = ANTLR3_TRUE; /* Exception is outstanding */ in antlr3RecognitionExceptionNew() 470 recognizer->state->failed = ANTLR3_TRUE; in match() 541 return ANTLR3_TRUE; // This token is unknown, but the next one is the one we wanted in mismatchIsUnwantedToken() 613 retcode = ANTLR3_TRUE; in mismatchIsMissingToken() 730 if (recognizer->state->errorRecovery == ANTLR3_TRUE) in reportError() 739 recognizer->state->errorRecovery = ANTLR3_TRUE; in reportError() 967 if (exact == ANTLR3_TRUE) in combineFollows() 1479 if ( recognizer->mismatchIsUnwantedToken(recognizer, is, ttype) == ANTLR3_TRUE) in recoverFromMismatchedToken() 1550 recognizer->state->error = ANTLR3_TRUE; in recoverFromMismatchedToken() 1588 if (recognizer->mismatchIsMissingToken(recognizer, is, follow) == ANTLR3_TRUE) in recoverFromMismatchedSet() [all …]
|
D | antlr3lexer.c | 152 specialT->factoryMade = ANTLR3_TRUE; // Prevent things trying to free() it in antlr3LexerNew() 165 specialT->factoryMade = ANTLR3_TRUE; // Prevent things trying to free() it in antlr3LexerNew() 266 …teof->factoryMade = ANTLR3_TRUE; // This isn't really manufactured but it stops things from trying… in nextTokenStr() 278 if (state->error == ANTLR3_TRUE) in nextTokenStr() 282 state->failed = ANTLR3_TRUE; in nextTokenStr() 736 lexer->rec->state->failed = ANTLR3_TRUE; in matchs() 741 lexer->rec->state->failed = ANTLR3_TRUE; in matchs() 760 return ANTLR3_TRUE; in matchs() 783 return ANTLR3_TRUE; in matchc() 790 lexer->rec->state->failed = ANTLR3_TRUE; in matchc() [all …]
|
D | antlr3collections.c | 173 table->doStrdup = ANTLR3_TRUE; in antlr3HashTableNew() 369 if (table->doStrdup == ANTLR3_TRUE) in antlr3HashRemove() 650 if (table->doStrdup == ANTLR3_TRUE) in antlr3HashPut() 1338 return ANTLR3_TRUE; in antlr3VectorResize() 1441 return ANTLR3_TRUE; in antlr3VectorSwap() 1482 factory->unTruc.factoryMade = ANTLR3_TRUE; in antlr3VectorFactoryNew() 1558 return ANTLR3_TRUE; in newPool() 1648 … if (check->factoryMade == ANTLR3_TRUE && check->elementsSize > ANTLR3_VECTOR_INTERNAL_SIZE) in closeVectorFactory() 1717 vector->factoryMade = ANTLR3_TRUE; in newVector() 2002 if (trie->allowDups ==ANTLR3_TRUE) in intTrieAdd() [all …]
|
D | antlr3cyclicdfa.c | 61 rec->state->failed = ANTLR3_TRUE; in noViableAlt() 108 if (rec->state->error != ANTLR3_TRUE) in antlr3dfapredict()
|
D | antlr3bitset.c | 566 return ANTLR3_TRUE; in antlr3BitsetEquals() 587 return ANTLR3_TRUE; in antlr3BitsetMember() 616 return ANTLR3_TRUE; in antlr3BitsetIsNil() 670 if (bitset->isMember(bitset, i) == ANTLR3_TRUE) in antlr3BitsetToIntList()
|
D | antlr3tokenstream.c | 439 if (ts->initialStreamState == ANTLR3_TRUE) in dbgTokLT() 629 if (ts->initialStreamState == ANTLR3_TRUE) in dbgConsume() 751 || types->isMember(types, tok->getType(tok) == ANTLR3_TRUE) in getTokensSet() 828 if (ts->initialStreamState == ANTLR3_TRUE) in dbgLA() 979 discard = ANTLR3_TRUE; in fillBuffer() 981 else if ( tokenStream->discardOffChannel == ANTLR3_TRUE in fillBuffer() 985 discard = ANTLR3_TRUE; in fillBuffer()
|
D | antlr3commontree.c | 165 return ANTLR3_TRUE; in newPool() 433 return ANTLR3_TRUE; in isNilNode() 510 if (tree->isNilNode(tree) == ANTLR3_TRUE) in toString()
|
D | antlr3commontoken.c | 126 factory->unTruc.factoryMade = ANTLR3_TRUE; in antlr3TokenFactoryNew() 201 return ANTLR3_TRUE; in newPool() 244 token->factoryMade = ANTLR3_TRUE; in newPoolToken()
|
D | antlr3basetree.c | 154 if (child->isNilNode(child) == ANTLR3_TRUE) in addChild() 380 freeNewChildren = ANTLR3_TRUE; // We must free this memory in replaceChildren() 452 if (freeNewChildren == ANTLR3_TRUE) in replaceChildren()
|
D | antlr3commontreenodestream.c | 265 stream->isRewriter = ANTLR3_TRUE; in antlr3CommonTreeNodeStreamNewStream() 427 if (ctns->isRewriter != ANTLR3_TRUE) in antlr3CommonTreeNodeStreamFree() 539 if (ctns->isRewriter != ANTLR3_TRUE) in reset() 760 if (ctns->hasUniqueNavigationNodes(ctns) == ANTLR3_TRUE) in addNavigationNode() 771 if (ctns->hasUniqueNavigationNodes(ctns) == ANTLR3_TRUE) in addNavigationNode()
|
D | antlr3exception.c | 169 if (ex->freeMessage == ANTLR3_TRUE) in antlr3ExceptionFree()
|
D | antlr3debughandlers.c | 190 return ANTLR3_TRUE; in sockSend() 316 delboy->initialized = ANTLR3_TRUE; in handshake() 318 return ANTLR3_TRUE; in handshake() 798 …out = buffer + sprintf((char *)buffer, "semanticPredicate\t%s\t", result == ANTLR3_TRUE ? "true" :… in semanticPredicate()
|
D | antlr3inputstream.c | 730 case ANTLR3_TRUE: in antlr3UTF16SetupStream() 736 if (inputBigEndian == ANTLR3_TRUE) in antlr3UTF16SetupStream() 1528 case ANTLR3_TRUE: in antlr3UTF32SetupStream() 1534 if (inputBigEndian == ANTLR3_TRUE) in antlr3UTF32SetupStream()
|
D | antlr3string.c | 204 …trings, factory->index, (void *) string, (void (ANTLR3_CDECL *)(void *))(stringFree), ANTLR3_TRUE); in newRaw8() 233 …trings, factory->index, (void *) string, (void (ANTLR3_CDECL *)(void *))(stringFree), ANTLR3_TRUE); in newRawUTF16() 1393 negate = ANTLR3_TRUE; in toInt32_UTF16()
|
D | antlr3convertutf.c | 309 return ANTLR3_TRUE; in isLegalUTF8()
|
/external/antlr/runtime/C/include/ |
D | antlr3errors.h | 36 #define ANTLR3_TRUE 1 macro
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/ |
D | C.stg | 253 #define HASFAILED() (LEXSTATE->failed == ANTLR3_TRUE) 262 #define HASEXCEPTION() (LEXSTATE->error == ANTLR3_TRUE) 377 #define HASEXCEPTION() (PSRSTATE->error == ANTLR3_TRUE) 401 #define HASFAILED() (FAILEDFLAG == ANTLR3_TRUE) 455 #define HASEXCEPTION() (PSRSTATE->error == ANTLR3_TRUE) 473 #define HASFAILED() (FAILEDFLAG == ANTLR3_TRUE) 1151 if (state->failed == ANTLR3_TRUE) 1845 * - lexer->error == ANTLR3_TRUE if an exception was thrown. 2532 FAILEDFLAG = ANTLR3_TRUE; 3250 true_value() ::= "ANTLR3_TRUE"
|