/external/antlr/antlr-3.4/runtime/C/include/ |
antlr3filestream.h | 42 ANTLR3_API ANTLR3_UINT32 antlr3Fsize (pANTLR3_UINT8 filename); 43 ANTLR3_API ANTLR3_UINT32 antlr3read8Bit (pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 fileName); 44 ANTLR3_API ANTLR3_UINT32 antlr3Fread (ANTLR3_FDSC fdsc, ANTLR3_UINT32 count, void * data);
|
antlr3string.h | 67 ANTLR3_UINT32 len; 71 ANTLR3_UINT32 size; 76 ANTLR3_UINT32 index; 115 pANTLR3_UINT8 (*insert) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 point, const char * newbit); 121 pANTLR3_UINT8 (*insert8) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 point, const char * newbit); 136 pANTLR3_UINT8 (*insertS) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 point, struct ANTLR3_STRING_struct * newbit); 141 pANTLR3_UINT8 (*inserti) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 point, ANTLR3_INT32 i); 146 pANTLR3_UINT8 (*addc) (struct ANTLR3_STRING_struct * string, ANTLR3_UINT32 c); 156 ANTLR3_UINT32 (*compare8) (struct ANTLR3_STRING_struct * string, const char * compStr); 162 ANTLR3_UINT32 (*compare) (struct ANTLR3_STRING_struct * string, const char * compStr) [all...] |
antlr3input.h | 96 ANTLR3_UINT32 sizeBuf; 101 ANTLR3_UINT32 line; 114 ANTLR3_UINT32 markDepth; 127 ANTLR3_UINT32 fileNo; 144 void (*reuse) (struct ANTLR3_INPUT_STREAM_struct * input, pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR3_UINT8 name); 165 ANTLR3_UINT32 (*size) (struct ANTLR3_INPUT_STREAM_struct * input); 174 ANTLR3_UINT32 (*getLine) (struct ANTLR3_INPUT_STREAM_struct * input); 189 ANTLR3_UINT32 (*getCharPositionInLine) (struct ANTLR3_INPUT_STREAM_struct * input); 193 void (*setLine) (struct ANTLR3_INPUT_STREAM_struct * input, ANTLR3_UINT32 line); 197 void (*setCharPositionInLine) (struct ANTLR3_INPUT_STREAM_struct * input, ANTLR3_UINT32 position) [all...] |
antlr3tokenstream.h | 139 pANTLR3_COMMON_TOKEN (*get) (struct ANTLR3_TOKEN_STREAM_struct * tokenStream, ANTLR3_UINT32 i); 163 pANTLR3_STRING (*toStringSS) (struct ANTLR3_TOKEN_STREAM_struct * tokenStream, ANTLR3_UINT32 start, ANTLR3_UINT32 stop); 228 ANTLR3_UINT32 channel; 248 ANTLR3_UINT32 ttype, ANTLR3_UINT32 channel); 267 pANTLR3_LIST (*getTokenRange) (struct ANTLR3_COMMON_TOKEN_STREAM_struct * tokenStream, ANTLR3_UINT32 start, ANTLR3_UINT32 stop); 272 ANTLR3_UINT32 start, ANTLR3_UINT32 stop, pANTLR3_BITSET types) [all...] |
antlr3commontoken.h | 112 ANTLR3_UINT32 type; 127 ANTLR3_UINT32 line; 140 ANTLR3_UINT32 channel; 171 ANTLR3_UINT32 textState; 194 ANTLR3_UINT32 user1; 200 ANTLR3_UINT32 user2; 206 ANTLR3_UINT32 user3; 246 ANTLR3_UINT32 (*getType)(struct ANTLR3_COMMON_TOKEN_struct * token); 250 void (*setType)(struct ANTLR3_COMMON_TOKEN_struct * token, ANTLR3_UINT32 ttype); 254 ANTLR3_UINT32 (*getLine)(struct ANTLR3_COMMON_TOKEN_struct * token) [all...] |
antlr3exception.h | 115 ANTLR3_UINT32 type; 152 ANTLR3_UINT32 expecting; 173 ANTLR3_UINT32 line; 181 ANTLR3_UINT32 decisionNum; 185 ANTLR3_UINT32 state;
|
antlr3recognizersharedstate.h | 75 ANTLR3_UINT32 sizeHint; 106 ANTLR3_UINT32 errorCount; 157 ANTLR3_UINT32 channel; 161 ANTLR3_UINT32 type; 188 ANTLR3_UINT32 user1, user2, user3;
|
antlr3basetree.h | 89 void * (*deleteChild) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 i); 97 ANTLR3_UINT32 (*getCharPositionInLine) (struct ANTLR3_BASE_TREE_struct * tree); 99 void * (*getChild) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 i); 105 ANTLR3_UINT32 (*getChildCount) (struct ANTLR3_BASE_TREE_struct * tree); 111 ANTLR3_UINT32 (*getType) (struct ANTLR3_BASE_TREE_struct * tree); 113 void * (*getFirstChildWithType) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 type); 115 ANTLR3_UINT32 (*getLine) (struct ANTLR3_BASE_TREE_struct * tree); 121 void (*setChild) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 i, void * child); 129 void (*freshenPACIndexes) (struct ANTLR3_BASE_TREE_struct * tree, ANTLR3_UINT32 offset);
|
antlr3collections.h | 111 ANTLR3_UINT32 modulo; 120 ANTLR3_UINT32 count; 142 ANTLR3_UINT32 (*size) (struct ANTLR3_HASH_TABLE_struct * table); 165 ANTLR3_UINT32 bucket; 192 ANTLR3_UINT32 (*size) (struct ANTLR3_LIST_struct * list); 212 ANTLR3_UINT32 (*size) (struct ANTLR3_STACK_struct * stack); 243 ANTLR3_UINT32 count; 263 ANTLR3_UINT32 elementsSize; 266 void (*del) (struct ANTLR3_VECTOR_struct * vector, ANTLR3_UINT32 entry); 267 void * (*get) (struct ANTLR3_VECTOR_struct * vector, ANTLR3_UINT32 entry) [all...] |
antlr3intstream.h | 97 ANTLR3_UINT32 type; 123 /** Get ANTLR3_UINT32 at current input pointer + i ahead where i=1 is next ANTLR3_UINT32 125 ANTLR3_UINT32 (*_LA) (struct ANTLR3_INT_STREAM_struct * intStream, ANTLR3_INT32 i); 182 ANTLR3_UINT32 (*size) (struct ANTLR3_INT_STREAM_struct * intStream); 188 ANTLR3_UINT32 cachedSize;
|
antlr3commontreenodestream.h | 249 ANTLR3_UINT32 lookAheadLength; 253 ANTLR3_UINT32 head; 258 ANTLR3_UINT32 tail; 278 pANTLR3_BASE_TREE (*visitChild) (struct ANTLR3_COMMON_TREE_NODE_STREAM_struct * ctns, ANTLR3_UINT32 child); 280 void (*addNavigationNode) (struct ANTLR3_COMMON_TREE_NODE_STREAM_struct * ctns, ANTLR3_UINT32 ttype); 291 ANTLR3_UINT32 (*getLookaheadSize) (struct ANTLR3_COMMON_TREE_NODE_STREAM_struct * ctns); 320 ANTLR3_UINT32 currentChildIndex; 324 ANTLR3_UINT32 nodeStackSize; 326 ANTLR3_UINT32 lookAheadLength; 327 ANTLR3_UINT32 tail [all...] |
antlr3baserecognizer.h | 86 ANTLR3_UINT32 type; 120 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow); 132 (*mismatchIsUnwantedToken) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, pANTLR3_INT_STREAM input, ANTLR3_UINT32 ttype); 145 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow); 179 ANTLR3_UINT32 201 void (*beginBacktrack) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, ANTLR3_UINT32 level); 206 void (*endBacktrack) (struct ANTLR3_BASE_RECOGNIZER_struct * recognizer, ANTLR3_UINT32 level, ANTLR3_BOOLEAN successful); 230 ANTLR3_UINT32 ttype, 249 ANTLR3_UINT32 tokenType); 331 ANTLR3_UINT32 expectedTokenType [all...] |
antlr3bitset.h | 83 ANTLR3_UINT32 length; 96 ANTLR3_UINT32 (*size) (struct ANTLR3_BITSET_struct * bitset); 100 ANTLR3_BOOLEAN (*isMember) (struct ANTLR3_BITSET_struct * bitset, ANTLR3_UINT32 bit); 101 ANTLR3_UINT32 (*numBits) (struct ANTLR3_BITSET_struct * bitset); 102 void (*remove) (struct ANTLR3_BITSET_struct * bitset, ANTLR3_UINT32 bit);
|
antlr3basetreeadaptor.h | 94 void * (*createTypeToken) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken); 95 void * (*createTypeTokenText) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken, pANTLR3_UINT8 text); 96 void * (*createTypeText) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 100 ANTLR3_UINT32 (*getType) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t); 102 void (*setType) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, ANTLR3_UINT32 type); 109 void * (*getChild) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, ANTLR3_UINT32 i); 110 void (*setChild) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, ANTLR3_UINT32 i, void * child); 111 void (*deleteChild) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, ANTLR3_UINT32 i); 112 void (*setChildIndex) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, ANTLR3_UINT32 i); 115 ANTLR3_UINT32 (*getChildCount) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void *) [all...] |
antlr3defs.h | 166 typedef UINT32 ANTLR3_UINT32, *pANTLR3_UINT32; 186 typedef uint32_t ANTLR3_UINT32, *pANTLR3_UINT32; 206 #define ANTLR3_UINT32_CAST(ptr) (ANTLR3_UINT32)((ANTLR3_UINT64)(ptr)) 210 #define ANTLR3_FUNC_PTR(ptr) (void *)((ANTLR3_UINT32)(ptr)) 211 #define ANTLR3_UINT64_CAST(ptr) (ANTLR3_UINT64)((ANTLR3_UINT32)(ptr)) 212 #define ANTLR3_UINT32_CAST(ptr) (ANTLR3_UINT32)(ptr) 214 typedef ANTLR3_UINT32 ANTLR3_INTKEY; 404 typedef uint32_t ANTLR3_UINT32, *pANTLR3_UINT32; 419 #define ANTLR3_UINT32_CAST(ptr) (ANTLR3_UINT32)((ANTLR3_UINT64)(ptr)) 423 #define ANTLR3_FUNC_PTR(ptr) (void *)((ANTLR3_UINT32)(ptr) [all...] |
antlr3parsetree.h | 68 ANTLR3_UINT32 (*getType) (struct ANTLR3_PARSE_TREE_struct * tree);
|
/external/antlr/antlr-3.4/runtime/C/src/ |
antlr3string.c | 40 static pANTLR3_STRING newSize8 (pANTLR3_STRING_FACTORY factory, ANTLR3_UINT32 size); 41 static pANTLR3_STRING newSizeUTF16 (pANTLR3_STRING_FACTORY factory, ANTLR3_UINT32 size); 42 static pANTLR3_STRING newPtr8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, ANTLR3_UINT32 size); 43 static pANTLR3_STRING newPtrUTF16_8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, ANTLR3_UINT32 size); 44 static pANTLR3_STRING newPtrUTF16_UTF16 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, ANTLR3_UINT32 size); 61 static pANTLR3_UINT8 insert8 (pANTLR3_STRING string, ANTLR3_UINT32 point, const char * newbit); 62 static pANTLR3_UINT8 insertUTF16_8 (pANTLR3_STRING string, ANTLR3_UINT32 point, const char * newbit); 63 static pANTLR3_UINT8 insertUTF16_UTF16 (pANTLR3_STRING string, ANTLR3_UINT32 point, const char * newbit); 67 static pANTLR3_UINT8 insertS (pANTLR3_STRING string, ANTLR3_UINT32 point, pANTLR3_STRING newbit); 69 static pANTLR3_UINT8 addc8 (pANTLR3_STRING string, ANTLR3_UINT32 c) [all...] |
antlr3bitset.c | 44 static ANTLR3_UINT32 antlr3BitsetSize (pANTLR3_BITSET bitset); 47 static ANTLR3_BOOLEAN antlr3BitsetMember (pANTLR3_BITSET bitset, ANTLR3_UINT32 bit); 48 static ANTLR3_UINT32 antlr3BitsetNumBits (pANTLR3_BITSET bitset); 49 static void antlr3BitsetRemove (pANTLR3_BITSET bitset, ANTLR3_UINT32 bit); 57 static ANTLR3_UINT64 bitMask (ANTLR3_UINT32 bitNumber); 58 static ANTLR3_UINT32 numWordsToHold (ANTLR3_UINT32 bit); 59 static ANTLR3_UINT32 wordNumber (ANTLR3_UINT32 bit); 76 antlr3BitsetNew(ANTLR3_UINT32 numBits [all...] |
antlr3basetree.c | 36 static void * getChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i); 37 static ANTLR3_UINT32 getChildCount (pANTLR3_BASE_TREE tree); 38 static ANTLR3_UINT32 getCharPositionInLine 40 static ANTLR3_UINT32 getLine (pANTLR3_BASE_TREE tree); 43 (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 type); 49 static void freshenPACIndexes (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 offset); 51 static void setChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i, void * child); 52 static void * deleteChild (pANTLR3_BASE_TREE tree, ANTLR3_UINT32 i); 74 tree->getFirstChildWithType = (void *(*)(pANTLR3_BASE_TREE, ANTLR3_UINT32))(getFirstChildWithType); 83 static ANTLR3_UINT32 [all...] |
antlr3basetreeadaptor.c | 58 static pANTLR3_BASE_TREE createTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken); 59 static pANTLR3_BASE_TREE dbgCreateTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken); 60 static pANTLR3_BASE_TREE createTypeTokenText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken, pANTLR3_UINT8 text); 61 static pANTLR3_BASE_TREE dbgCreateTypeTokenText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN fromToken, pANTLR3_UINT8 text); 62 static pANTLR3_BASE_TREE createTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 63 static pANTLR3_BASE_TREE dbgCreateTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 64 static ANTLR3_UINT32 getType (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t); 65 static void setType (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, ANTLR3_UINT32 type); 69 static pANTLR3_BASE_TREE getChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, ANTLR3_UINT32 i); 70 static ANTLR3_UINT32 getChildCount (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t) [all...] |
antlr3tokenstream.c | 42 static void setTokenTypeChannel (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_UINT32 ttype, ANTLR3_UINT32 channel); 46 static pANTLR3_LIST getTokenRange (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_UINT32 start, ANTLR3_UINT32 stop); 47 static pANTLR3_LIST getTokensSet (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_UINT32 start, ANTLR3_UINT32 stop, pANTLR3_BITSET types); 48 static pANTLR3_LIST getTokensList (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_UINT32 start, ANTLR3_UINT32 stop, pANTLR3_LIST list); 49 static pANTLR3_LIST getTokensType (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_UINT32 start, ANTLR3_UINT32 stop, ANTLR3_UINT32 type) [all...] |
antlr3filestream.c | 54 antlr3FileStreamNew(pANTLR3_UINT8 fileName, ANTLR3_UINT32 encoding) 89 antlr3StringStreamNew(pANTLR3_UINT8 data, ANTLR3_UINT32 encoding, ANTLR3_UINT32 size, pANTLR3_UINT8 name) 313 ANTLR3_UINT32 status; 352 ANTLR3_API ANTLR3_UINT32 356 ANTLR3_UINT32 fSize; 366 return (ANTLR3_UINT32)ANTLR3_ERR_NOFILE; 380 return (ANTLR3_UINT32)ANTLR3_ERR_NOMEM; 417 ANTLR3_API ANTLR3_UINT32 424 return (ANTLR3_UINT32)statbuf.st_size [all...] |
antlr3collections.c | 60 static ANTLR3_UINT32 antlr3HashSize (pANTLR3_HASH_TABLE table); 77 static ANTLR3_UINT32 antlr3ListSize (pANTLR3_LIST list); 85 static ANTLR3_UINT32 antlr3StackSize (pANTLR3_STACK stack); 91 static void antlr3VectorDel (pANTLR3_VECTOR vector, ANTLR3_UINT32 entry); 92 static void * antlr3VectorGet (pANTLR3_VECTOR vector, ANTLR3_UINT32 entry); 93 static void * antrl3VectorRemove (pANTLR3_VECTOR vector, ANTLR3_UINT32 entry); 95 static ANTLR3_UINT32 antlr3VectorAdd (pANTLR3_VECTOR vector, void * element, void (ANTLR3_CDECL *freeptr)(void *)); 96 static ANTLR3_UINT32 antlr3VectorSet (pANTLR3_VECTOR vector, ANTLR3_UINT32 entry, void * element, void (ANTLR3_CDECL *freeptr)(void *), ANTLR3_BOOLEAN freeExisting); 97 static ANTLR3_UINT32 antlr3VectorSize (pANTLR3_VECTOR vector) [all...] |
antlr3commontreeadaptor.c | 49 static pANTLR3_COMMON_TOKEN createToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 53 static ANTLR3_UINT32 getType (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t); 54 static pANTLR3_BASE_TREE getChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, ANTLR3_UINT32 i); 55 static ANTLR3_UINT32 getChildCount (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t); 62 static void setChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, ANTLR3_UINT32 i, pANTLR3_BASE_TREE child); 63 static void deleteChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, ANTLR3_UINT32 i); 120 cta->baseAdaptor.getType = (ANTLR3_UINT32 (*) (pANTLR3_BASE_TREE_ADAPTOR, void *)) 122 cta->baseAdaptor.getChild = (void * (*) (pANTLR3_BASE_TREE_ADAPTOR, void *, ANTLR3_UINT32)) 124 cta->baseAdaptor.setChild = (void (*) (pANTLR3_BASE_TREE_ADAPTOR, void *, ANTLR3_UINT32, void *)) 130 cta->baseAdaptor.setChildIndex = (void (*) (pANTLR3_BASE_TREE_ADAPTOR, void *, ANTLR3_UINT32)) [all...] |
antlr3commontoken.c | 43 static ANTLR3_UINT32 getType (pANTLR3_COMMON_TOKEN token); 44 static void setType (pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 type); 45 static ANTLR3_UINT32 getLine (pANTLR3_COMMON_TOKEN token); 46 static void setLine (pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 line); 49 static ANTLR3_UINT32 getChannel (pANTLR3_COMMON_TOKEN token); 50 static void setChannel (pANTLR3_COMMON_TOKEN token, ANTLR3_UINT32 channel); 73 antlr3CommonTokenNew(ANTLR3_UINT32 ttype) 167 (ANTLR3_UINT32)((factory->thisPool + 1) * sizeof(pANTLR3_COMMON_TOKEN *)) /* Memory for new pool pointers */ 246 ANTLR3_UINT32 limit; 247 ANTLR3_UINT32 token [all...] |