Home
last modified time | relevance | path

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

/external/antlr/runtime/C/src/
Dantlr3filestream.c145 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()
Dantlr3rewritestreams.c77 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()
Dantlr3baserecognizer.c399 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 …]
Dantlr3lexer.c152 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 …]
Dantlr3collections.c173 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 …]
Dantlr3cyclicdfa.c61 rec->state->failed = ANTLR3_TRUE; in noViableAlt()
108 if (rec->state->error != ANTLR3_TRUE) in antlr3dfapredict()
Dantlr3bitset.c566 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()
Dantlr3tokenstream.c439 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()
Dantlr3commontree.c165 return ANTLR3_TRUE; in newPool()
433 return ANTLR3_TRUE; in isNilNode()
510 if (tree->isNilNode(tree) == ANTLR3_TRUE) in toString()
Dantlr3commontoken.c126 factory->unTruc.factoryMade = ANTLR3_TRUE; in antlr3TokenFactoryNew()
201 return ANTLR3_TRUE; in newPool()
244 token->factoryMade = ANTLR3_TRUE; in newPoolToken()
Dantlr3basetree.c154 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()
Dantlr3commontreenodestream.c265 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()
Dantlr3exception.c169 if (ex->freeMessage == ANTLR3_TRUE) in antlr3ExceptionFree()
Dantlr3debughandlers.c190 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()
Dantlr3inputstream.c730 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()
Dantlr3string.c204 …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()
Dantlr3convertutf.c309 return ANTLR3_TRUE; in isLegalUTF8()
/external/antlr/runtime/C/include/
Dantlr3errors.h36 #define ANTLR3_TRUE 1 macro
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg253 #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"