Home
last modified time | relevance | path

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

/external/antlr/antlr-3.4/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()
735 lexer->rec->state->failed = ANTLR3_TRUE; in matchs()
740 lexer->rec->state->failed = ANTLR3_TRUE; in matchs()
759 return ANTLR3_TRUE; in matchs()
782 return ANTLR3_TRUE; in matchc()
789 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()
1419 return ANTLR3_TRUE; in antlr3VectorSwap()
1460 factory->unTruc.factoryMade = ANTLR3_TRUE; in antlr3VectorFactoryNew()
1611 … if (check->factoryMade == ANTLR3_TRUE && check->elementsSize > ANTLR3_VECTOR_INTERNAL_SIZE) in closeVectorFactory()
1676 vector->factoryMade = ANTLR3_TRUE; in newVector()
1962 if (trie->allowDups ==ANTLR3_TRUE) in intTrieAdd()
2000 return ANTLR3_TRUE; in intTrieAdd()
2182 return ANTLR3_TRUE; in intTrieAdd()
[all …]
Dantlr3cyclicdfa.c61 rec->state->failed = ANTLR3_TRUE; in noViableAlt()
108 if (rec->state->error != ANTLR3_TRUE) in antlr3dfapredict()
Dantlr3bitset.c567 return ANTLR3_TRUE; in antlr3BitsetEquals()
588 return ANTLR3_TRUE; in antlr3BitsetMember()
617 return ANTLR3_TRUE; in antlr3BitsetIsNil()
671 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()
Dantlr3basetree.c154 if (child->isNilNode(child) == ANTLR3_TRUE) in addChild()
376 freeNewChildren = ANTLR3_TRUE; // We must free this memory in replaceChildren()
448 if (freeNewChildren == ANTLR3_TRUE) in replaceChildren()
Dantlr3exception.c169 if (ex->freeMessage == ANTLR3_TRUE) in antlr3ExceptionFree()
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()
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()
Dantlr3commontree.c414 return ANTLR3_TRUE; in isNilNode()
491 if (tree->isNilNode(tree) == ANTLR3_TRUE) in toString()
Dantlr3commontoken.c126 factory->unTruc.factoryMade = ANTLR3_TRUE; in antlr3TokenFactoryNew()
221 token->factoryMade = ANTLR3_TRUE; in newPoolToken()
Dantlr3inputstream.c723 case ANTLR3_TRUE: in antlr3UTF16SetupStream()
729 if (inputBigEndian == ANTLR3_TRUE) in antlr3UTF16SetupStream()
1521 case ANTLR3_TRUE: in antlr3UTF32SetupStream()
1527 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()
1333 negate = ANTLR3_TRUE; in toInt32_UTF16()
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3errors.h36 #define ANTLR3_TRUE 1 macro
Dantlr3convertutf.h122 #define true ANTLR3_TRUE
/external/antlr/antlr-3.4/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.
2537 FAILEDFLAG = ANTLR3_TRUE;
3255 true_value() ::= "ANTLR3_TRUE"