/external/antlr/runtime/C/src/ |
D | antlr3filestream.c | 50 static pANTLR3_INPUT_STREAM antlr3CreateFileStream (pANTLR3_UINT8 fileName); 51 static pANTLR3_INPUT_STREAM antlr3CreateStringStream (pANTLR3_UINT8 data); 54 antlr3FileStreamNew(pANTLR3_UINT8 fileName, ANTLR3_UINT32 encoding) in antlr3FileStreamNew() 89 antlr3StringStreamNew(pANTLR3_UINT8 data, ANTLR3_UINT32 encoding, ANTLR3_UINT32 size, pANTLR3_UINT8… in antlr3StringStreamNew() 143 if (*((pANTLR3_UINT8)(&bomTest)) == 0xFE) in setupInputStream() 164 if ( (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar)) == 0xEF in setupInputStream() 165 && (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar+1)) == 0xBB in setupInputStream() 166 && (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar+2)) == 0xBF in setupInputStream() 171 input->nextChar = (void *)((pANTLR3_UINT8)input->nextChar + 3); in setupInputStream() 186 if ( (ANTLR3_UINT8)(*((pANTLR3_UINT8)input->nextChar)) == 0xFE in setupInputStream() [all …]
|
D | antlr3inputstream.c | 57 …itReuse (pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR… 288 antlr38BitReuse(pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR3_UIN… in antlr38BitReuse() 299 …amName = input->strFactory->newStr(input->strFactory, name == NULL ? (pANTLR3_UINT8)"-memory-" : n… in antlr38BitReuse() 321 if ((pANTLR3_UINT8)(input->nextChar) < (((pANTLR3_UINT8)input->data) + input->sizeBuf)) in antlr38BitConsume() 327 if ((ANTLR3_UCHAR)(*((pANTLR3_UINT8)input->nextChar)) == input->newlineChar) in antlr38BitConsume() 333 input->currentLine = (void *)(((pANTLR3_UINT8)input->nextChar) + 1); in antlr38BitConsume() 338 input->nextChar = (void *)(((pANTLR3_UINT8)input->nextChar) + 1); in antlr38BitConsume() 356 …if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf… in antlr38BitLA() 362 return (ANTLR3_UCHAR)(*((pANTLR3_UINT8)input->nextChar + la - 1)); in antlr38BitLA() 383 …if (( ((pANTLR3_UINT8)input->nextChar) + la - 1) >= (((pANTLR3_UINT8)input->data) + input->sizeBuf… in antlr38BitLA_ucase() [all …]
|
D | antlr3string.c | 42 static pANTLR3_STRING newPtr8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, ANTLR3_U… 43 static pANTLR3_STRING newPtrUTF16_8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, AN… 44 static pANTLR3_STRING newPtrUTF16_UTF16 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string… 45 static pANTLR3_STRING newStr8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string); 46 static pANTLR3_STRING newStrUTF16_8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string); 47 static pANTLR3_STRING newStrUTF16_UTF16 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string… 55 static pANTLR3_UINT8 set8 (pANTLR3_STRING string, const char * chars); 56 static pANTLR3_UINT8 setUTF16_8 (pANTLR3_STRING string, const char * chars); 57 static pANTLR3_UINT8 setUTF16_UTF16 (pANTLR3_STRING string, const char * chars); 58 static pANTLR3_UINT8 append8 (pANTLR3_STRING string, const char * newbit); [all …]
|
D | antlr3basetreeadaptor.c | 60 …TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken, pANTLR3_UINT8 text); 61 …TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken, pANTLR3_UINT8 text); 62 … createTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 63 …bgCreateTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 68 static void setText8 (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_UINT8 t); 98 …nText = (void * (*)(pANTLR3_BASE_TREE_ADAPTOR, ANTLR3_UINT32, pANTLR3_COMMON_TOKEN, pANTLR3_UINT8)) in antlr3BaseTreeAdaptorInit() 100 adaptor->createTypeText = (void * (*)(pANTLR3_BASE_TREE_ADAPTOR, ANTLR3_UINT32, pANTLR3_UINT8)) in antlr3BaseTreeAdaptorInit() 119 …nText = (void * (*)(pANTLR3_BASE_TREE_ADAPTOR, ANTLR3_UINT32, pANTLR3_COMMON_TOKEN, pANTLR3_UINT8)) in antlr3BaseTreeAdaptorInit() 121 adaptor->createTypeText = (void * (*)(pANTLR3_BASE_TREE_ADAPTOR, ANTLR3_UINT32, pANTLR3_UINT8)) in antlr3BaseTreeAdaptorInit() 138 adaptor->setText8 = (void (*)(pANTLR3_BASE_TREE_ADAPTOR, pANTLR3_UINT8)) in antlr3BaseTreeAdaptorInit() [all …]
|
D | antlr3rewritestreams.c | 187 …eamNewAE(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description) in antlr3RewriteRuleElementStreamNewAE() 257 …ewAEE(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, v… in antlr3RewriteRuleElementStreamNewAEE() 280 …ewAEV(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, p… in antlr3RewriteRuleElementStreamNewAEV() 309 …eamNewAE(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description) in antlr3RewriteRuleTOKENStreamNewAE() 333 …ewAEE(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, v… in antlr3RewriteRuleTOKENStreamNewAEE() 352 …ewAEV(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, p… in antlr3RewriteRuleTOKENStreamNewAEV() 373 …eamNewAE(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description) in antlr3RewriteRuleSubtreeStreamNewAE() 395 …ewAEE(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, v… in antlr3RewriteRuleSubtreeStreamNewAEE() 418 …ewAEV(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, p… in antlr3RewriteRuleSubtreeStreamNewAEV() 442 …eamNewAE(pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description) in antlr3RewriteRuleNODEStreamNewAE() [all …]
|
D | antlr3lexer.c | 60 static void displayRecognitionError (pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 * tokenName… 247 … state->tokenStartCharIndex = (ANTLR3_MARKER)(((pANTLR3_UINT8)input->nextChar)); in nextTokenStr() 427 displayRecognitionError (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 * tokenNames) in displayRecognitionError() 451 (pANTLR3_UINT8) (ex->message), in displayRecognitionError() 457 …width = ANTLR3_UINT32_CAST(( (pANTLR3_UINT8)(lexer->input->data) + (lexer->input->size(lexer->inpu… in displayRecognitionError() 469 ANTLR3_FPRINTF(stderr, "\t%.*s\n", width > 20 ? 20 : width ,((pANTLR3_UINT8)ex->index)); in displayRecognitionError() 478 …width = ANTLR3_UINT32_CAST(((pANTLR3_UINT8)(lexer->input->data)+(lexer->input->size(lexer->input))… in displayRecognitionError() 482 …ANTLR3_FPRINTF(stderr, "looks like this:\n\t\t%.*s\n", width > 20 ? 20 : width ,(pANTLR3_UINT8)(le… in displayRecognitionError()
|
D | antlr3commontoken.c | 42 static void setText8 (pANTLR3_COMMON_TOKEN token, pANTLR3_UINT8 text); 394 …token->tokText.text = token->strFactory->newStr8(token->strFactory, (pANTLR3_UINT8)token->tokText.… in getText() 412 token->tokText.text = token->strFactory->newStr8(token->strFactory, (pANTLR3_UINT8)"<EOF>"); in getText() 438 static void setText8 (pANTLR3_COMMON_TOKEN token, pANTLR3_UINT8 text) in setText8()
|
D | antlr3baserecognizer.c | 62 static void displayRecognitionError (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 * to… 70 …ANTLR3_STACK getRuleInvocationStackNamed (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 name); 378 …))->strFactory->newStr(((pANTLR3_BASE_TREE)(ex->token))->strFactory, (pANTLR3_UINT8)"-unknown sour… in antlr3RecognitionExceptionNew() 1008 displayRecognitionError (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 * tokenNames) in displayRecognitionError() 1050 (pANTLR3_UINT8) (recognizer->state->exception->message)); in displayRecognitionError() 1079 …ANTLR3_FPRINTF(stderr, "\n near %s\n ", ttext == NULL ? (pANTLR3_UINT8)"<no text for the tok… in displayRecognitionError() 1824 getRuleInvocationStackNamed (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_UINT8 name) in getRuleInvocationStackNamed() 2222 token->setText8(token, (pANTLR3_UINT8)"<missing "); in getMissingSymbol()
|
D | antlr3commontreeadaptor.c | 49 …EN createToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 246 …return (pANTLR3_BASE_TREE)adaptor->createTypeText(adaptor, ANTLR3_TOKEN_INVALID, (pANTLR3_UINT8)"T… in errorNode() 291 createToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text) in createToken()
|
D | antlr3treeparser.c | 243 token->setText8 (token, (pANTLR3_UINT8)"<missing "); in getMissingSymbol()
|
D | antlr3commontree.c | 514 nilNode = tree->strFactory->newPtr(tree->strFactory, (pANTLR3_UINT8)"nil", 3); in toString()
|
D | antlr3collections.c | 656 … entry->keybase.key.sKey = (pANTLR3_UINT8)key; /* Record the key value */ in antlr3HashPut() 839 pANTLR3_UINT8 keyPtr; in antlr3Hash() 843 keyPtr = (pANTLR3_UINT8) key; in antlr3Hash()
|
/external/antlr/runtime/C/include/ |
D | antlr3string.h | 61 pANTLR3_UINT8 chars; 88 pANTLR3_UINT8 (*set) (struct ANTLR3_STRING_struct * string, const char * chars); 95 pANTLR3_UINT8 (*set8) (struct ANTLR3_STRING_struct * string, const char * chars); 102 pANTLR3_UINT8 (*append) (struct ANTLR3_STRING_struct * string, const char * newbit); 108 pANTLR3_UINT8 (*append8) (struct ANTLR3_STRING_struct * string, const char * newbit); 115 …pANTLR3_UINT8 (*insert) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 point, const char *… 121 …pANTLR3_UINT8 (*insert8) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 point, const char … 126 …pANTLR3_UINT8 (*setS) (struct ANTLR3_STRING_struct * string, struct ANTLR3_STRING_struct * chars… 131 …pANTLR3_UINT8 (*appendS) (struct ANTLR3_STRING_struct * string, struct ANTLR3_STRING_struct * ne… 136 …pANTLR3_UINT8 (*insertS) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 point, struct ANTL… [all …]
|
D | antlr3defs.h | 168 typedef UINT8 ANTLR3_UINT8, *pANTLR3_UINT8; typedef 188 typedef uint8_t ANTLR3_UINT8, *pANTLR3_UINT8; 406 typedef uint8_t ANTLR3_UINT8, *pANTLR3_UINT8; typedef 494 #define ANTLR3_STRDUP(instr) (pANTLR3_UINT8)(strdup ((const char *)(instr))) 563 ANTLR3_API pANTLR3_INPUT_STREAM antlr3FileStreamNew (pANTLR3_UINT8 file… 564 …tringStreamNew (pANTLR3_UINT8 data, ANTLR3_UINT32 encoding, ANTLR3_UINT32 si… 610 …mNewAE (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description); 612 …wAEE (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, v… 614 …wAEV (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description, p… 617 …mNewAE (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_RECOGNIZER rec, pANTLR3_UINT8 description); [all …]
|
D | antlr3filestream.h | 39 ANTLR3_API ANTLR3_FDSC antlr3Fopen (pANTLR3_UINT8 filename, const char * mode); 42 ANTLR3_API ANTLR3_UINT32 antlr3Fsize (pANTLR3_UINT8 filename); 43 ANTLR3_API ANTLR3_UINT32 antlr3read8Bit (pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 fileName);
|
D | antlr3basetreeadaptor.h | 95 …TOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken, pANTLR3_UINT8 text); 96 …) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 107 void (*setText8) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, pANTLR3_UINT8 t); 119 … (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text);
|
D | antlr3input.h | 144 … (struct ANTLR3_INPUT_STREAM_struct * input, pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR…
|
D | antlr3baserecognizer.h | 170 …RecognitionError) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, pANTLR3_UINT8 * tokenNames); 265 pANTLR3_UINT8 name);
|
D | antlr3recognizersharedstate.h | 128 pANTLR3_UINT8 * tokenNames;
|
D | antlr3commontoken.h | 242 void (*setText8)(struct ANTLR3_COMMON_TOKEN_struct * token, pANTLR3_UINT8 text);
|
D | antlr3collections.h | 49 pANTLR3_UINT8 sKey; /**< Used if type is ANTLR3_HASH_TYPE_STR */
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/ |
D | AST.stg | 98 …ntlr3RewriteRule<rewriteElementType>StreamNewAE(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"token <it>");… 101 …ream_<it> = antlr3RewriteRuleSubtreeStreamNewAE(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"rule <it>"); … 310 …lr3RewriteRule<rewriteElementType>StreamNewAEE(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"token <it>", … 314 …lr3RewriteRule<rewriteElementType>StreamNewAEV(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"token <it>", … 318 :{it | stream_<it>=antlr3RewriteRuleSubtreeStreamNewAEE(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"token… 322 :{it | stream_<it>=antlr3RewriteRuleSubtreeStreamNewAEV(ADAPTOR, RECOGNIZER, (pANTLR3_UINT8)"token… 539 …(<ASTLabelType>)ADAPTOR->createTypeText(ADAPTOR, <tokenType>, (pANTLR3_UINT8)<args; separator=", "… 543 (<ASTLabelType>)ADAPTOR->createTypeText(ADAPTOR, <tokenType>, (pANTLR3_UINT8)"<tokenType>")
|
D | Dbg.stg | 114 …UT->tokenSource->strFactory->newStr8(INPUT->tokenSource->strFactory, (pANTLR3_UINT8)ctx->getGramma…
|
D | C.stg | 295 # define NEXTCHAR ((pANTLR3_UINT8)(INPUT->nextChar)) 296 # define DATAP ((pANTLR3_UINT8)(INPUT->data)) 486 #define TOKTEXT(tok, txt) tok, (pANTLR3_UINT8)txt 755 extern pANTLR3_UINT8 <recognizer.grammar.composite.rootGrammar.recognizerName>TokenNames[]; 1192 pANTLR3_UINT8 <name>TokenNames[<length(tokenNames)>+4] 1194 (pANTLR3_UINT8) "\<invalid>", /* String to print to indicate an invalid token */ 1195 (pANTLR3_UINT8) "\<EOR>", 1196 (pANTLR3_UINT8) "\<DOWN>", 1197 (pANTLR3_UINT8) "\<UP>", 1198 <tokenNames:{it |(pANTLR3_UINT8) <it>}; separator=",\n"> [all …]
|
/external/antlr/runtime/C/doxygen/ |
D | buildrec.dox | 77 /// // Name of the input file. Note that we always use the abstract type pANTLR3_UINT8 82 /// pANTLR3_UINT8 fName; 151 /// fName =(pANTLR3_UINT8)"./input"; // Note in VS2005 debug, working directory must be configured 155 /// fName = (pANTLR3_UINT8)argv[1];
|