Home
last modified time | relevance | path

Searched refs:ANTLR_UINT32 (Results 1 – 25 of 42) sorted by relevance

12

/external/antlr/runtime/Cpp/include/
Dantlr3input.hpp81 ANTLR_UINT32 m_sizeBuf;
86 ANTLR_UINT32 m_line;
99 ANTLR_UINT32 m_markDepth;
112 ANTLR_UINT32 m_fileNo;
134 ANTLR_UINT32 m_encoding;
138 InputStream(const ANTLR_UINT8* fileName, ANTLR_UINT32 encoding);
139 InputStream(const ANTLR_UINT8* data, ANTLR_UINT32 encoding, ANTLR_UINT32 size, ANTLR_UINT8* name);
144 ANTLR_UINT32 get_sizeBuf() const;
145 ANTLR_UINT32 get_line() const;
148 ANTLR_UINT32 get_markDepth() const;
[all …]
Dantlr3bitset.hpp45 static const ANTLR_UINT32 ANTLR_BITSET_BITS = 64;
49 static const ANTLR_UINT32 ANTLR_BITSET_NIBBLE = 4;
53 static const ANTLR_UINT32 ANTLR_BITSET_LOG_BITS = 6;
63 static const ANTLR_UINT32 ANTLR_BITSET_MOD_MASK = ANTLR_BITSET_BITS - 1;
85 ANTLR_UINT32 m_length;
89 BitsetList( ANTLR_BITWORD* bits, ANTLR_UINT32 length );
92 ANTLR_UINT32 get_length() const;
94 void set_length( ANTLR_UINT32 length );
128 typedef typename AllocPolicyType::template ListType<ANTLR_UINT32> IntListType;
137 Bitset( ANTLR_UINT32 nbits=0 );
[all …]
Dantlr3intstream.hpp148 ANTLR_UINT32 _LA( ANTLR_INT32 i);
222 ANTLR_UINT32 _LA( ANTLR_INT32 i, ClassForwarder<RESOLVE_ENDIAN_AT_RUNTIME> );
232 ANTLR_UINT32 _LA( ANTLR_INT32 i);
242 ANTLR_UINT32 _LA( ANTLR_INT32 i);
249 static const ANTLR_UINT32* TrailingBytesForUTF8();
257 ANTLR_UINT32 _LA( ANTLR_INT32 i);
272 ANTLR_UINT32 _LA( ANTLR_INT32 i, ClassForwarder<BYTE_AGNOSTIC> );
281 ANTLR_UINT32 _LA( ANTLR_INT32 i, ClassForwarder<ANTLR_LITTLE_ENDIAN> );
290 ANTLR_UINT32 _LA( ANTLR_INT32 i, ClassForwarder<ANTLR_BIG_ENDIAN> );
321 ANTLR_UINT32 _LA( ANTLR_INT32 i);
[all …]
Dantlr3tokenstream.hpp251 …typedef typename AllocPolicyType::template UnOrderedMapType<ANTLR_UINT32, ANTLR_UINT32> ChannelOve…
252 typedef typename AllocPolicyType::template OrderedSetType<ANTLR_UINT32> DiscardSetType;
253 typedef typename AllocPolicyType::template ListType<ANTLR_UINT32> IntListType;
280 ANTLR_UINT32 m_channel;
290 ANTLR_UINT32 m_nissued;
299 CommonTokenStream(ANTLR_UINT32 hint, TokenSourceType* source = NULL,
317 void setTokenTypeChannel(ANTLR_UINT32 ttype, ANTLR_UINT32 channel);
358 void getTokenRange(ANTLR_UINT32 start, ANTLR_UINT32 stop, TokensListType& tokenRange);
362 …void getTokensSet(ANTLR_UINT32 start, ANTLR_UINT32 stop, BitsetType* types, TokensListType& tokenS…
366 void getTokensList(ANTLR_UINT32 start, ANTLR_UINT32 stop,
[all …]
Dantlr3collections.hpp68 ANTLR_UINT32 m_bitNum; /**< This is the left/right bit index for traversal along the nodes */
78 ANTLR_UINT32 get_bitNum() const;
83 void set_bitNum( ANTLR_UINT32 bitNum );
123 ANTLR_UINT32 m_count; /* Current entry count */
130 IntTrie( ANTLR_UINT32 depth );
189 ANTLR_UINT32* m_sorted;
200 ANTLR_UINT32* m_cycle;
217 ANTLR_UINT32 m_cycleMark;
222 ANTLR_UINT32 m_limit;
245 void addEdge(ANTLR_UINT32 edge, ANTLR_UINT32 dependency);
[all …]
Dantlr3exception.hpp97 ANTLR_UINT32 m_expecting;
118 ANTLR_UINT32 m_line;
126 ANTLR_UINT32 m_decisionNum;
130 ANTLR_UINT32 m_state;
146 ANTLR_UINT32 get_expecting() const;
150 ANTLR_UINT32 get_line() const;
152 ANTLR_UINT32 get_decisionNum() const;
153 ANTLR_UINT32 get_state() const;
161 void set_expecting( ANTLR_UINT32 expecting );
165 void set_line( ANTLR_UINT32 line );
[all …]
Dantlr3commontreenodestream.hpp149 ANTLR_UINT32 m_lookAheadLength;
153 ANTLR_UINT32 m_head;
158 ANTLR_UINT32 m_tail;
182 CommonTreeNodeStream( ANTLR_UINT32 hint );
184 CommonTreeNodeStream( TreeType* tree, ANTLR_UINT32 hint );
186 void init( ANTLR_UINT32 hint );
266 void addNavigationNode(ANTLR_UINT32 ttype);
274 ANTLR_UINT32 getLookaheadSize();
300 ANTLR_UINT32 m_currentChildIndex;
304 ANTLR_UINT32 m_nodeStackSize;
[all …]
Dantlr3commontoken.hpp92 ANTLR_UINT32 m_type;
96 ANTLR_UINT32 m_channel;
107 ANTLR_UINT32 m_line;
133 CommonToken(ANTLR_UINT32 type);
176 ANTLR_UINT32 get_type() const;
177 ANTLR_UINT32 getType() const;
181 void set_type(ANTLR_UINT32 ttype);
185 ANTLR_UINT32 get_line() const;
189 void set_line(ANTLR_UINT32 line);
203 ANTLR_UINT32 get_channel() const;
[all …]
Dantlr3recognizersharedstate.hpp95 ANTLR_UINT32 m_sizeHint;
133 ANTLR_UINT32 m_errorCount;
173 ANTLR_UINT32 m_channel;
177 ANTLR_UINT32 m_type;
211 ANTLR_UINT32 get_sizeHint() const;
217 ANTLR_UINT32 get_errorCount() const;
221 ANTLR_UINT8* get_tokenName( ANTLR_UINT32 i ) const;
224 ANTLR_UINT32& get_channel();
225 ANTLR_UINT32 get_type() const;
233 void set_sizeHint( ANTLR_UINT32 sizeHint );
[all …]
Dantlr3defs.hpp165 typedef UINT32 ANTLR_UINT32; typedef
184 typedef uint32_t ANTLR_UINT32; typedef
203 #define ANTLR_UINT32_CAST(ptr) (ANTLR_UINT32)((ANTLR_UINT64)(ptr))
207 #define ANTLR_UINT64_CAST(ptr) (ANTLR_UINT64)((ANTLR_UINT32)(ptr))
208 #define ANTLR_UINT32_CAST(ptr) (ANTLR_UINT32)(ptr)
210 typedef ANTLR_UINT32 ANTLR_INTKEY;
268 typedef uint32_t ANTLR_UINT32; typedef
281 #define ANTLR_UINT32_CAST(ptr) (ANTLR_UINT32)((ANTLR_UINT64)(ptr))
285 #define ANTLR_FUNC_PTR(ptr) (void *)((ANTLR_UINT32)(ptr))
286 #define ANTLR_UINT64_CAST(ptr) (ANTLR_UINT64)((ANTLR_UINT32)(ptr))
[all …]
Dantlr3commontree.hpp106 TreeType* deleteChild(ANTLR_UINT32 i);
115 ANTLR_UINT32 getCharPositionInLine();
116 TreeType* getChild(ANTLR_UINT32 i);
118 ANTLR_UINT32 getChildCount() const;
119 ANTLR_UINT32 getType();
120 TreeType* getFirstChildWithType(ANTLR_UINT32 type);
121 ANTLR_UINT32 getLine();
124 void setChild(ANTLR_UINT32 i, TreeType* child);
128 void freshenPACIndexes(ANTLR_UINT32 offset);
Dantlr3commontreeadaptor.hpp71 TreeType* createTypeToken( ANTLR_UINT32 tokenType, CommonTokenType* fromToken);
72 …TreeType* createTypeTokenText ( ANTLR_UINT32 tokenType, CommonTokenType* fromToken, const ANTL…
73 TreeType* createTypeText ( ANTLR_UINT32 tokenType, const ANTLR_UINT8* text);
76 ANTLR_UINT32 getType( TreeType* t);
79 TreeType* getChild( TreeType* t, ANTLR_UINT32 i);
80 void setChild( TreeType* t, ANTLR_UINT32 i, TreeType* child);
81 void deleteChild( TreeType* t, ANTLR_UINT32 i);
85 ANTLR_UINT32 getChildCount( TreeType*);
88 CommonTokenType* createToken( ANTLR_UINT32 tokenType, const ANTLR_UINT8* text);
147 TreeType* createTypeToken(ANTLR_UINT32 tokenType, CommonTokenType* fromToken);
[all …]
Dantlr3baserecognizer.hpp84 BaseRecognizer(ANTLR_UINT32 sizeHint, RecognizerSharedStateType* state);
101 const UnitType* match(ANTLR_UINT32 ttype, BitsetListType* follow);
115 bool mismatchIsUnwantedToken(IntStreamType* input, ANTLR_UINT32 ttype);
131 void mismatch(ANTLR_UINT32 ttype, BitsetListType* follow);
166 ANTLR_UINT32 getNumberOfSyntaxErrors();
187 void beginBacktrack(ANTLR_UINT32 level);
192 void endBacktrack(ANTLR_UINT32 level, bool successful);
382 const UnitType* recoverFromMismatchedToken( ANTLR_UINT32 ttype, BitsetListType* follow);
401 void consumeUntil(ANTLR_UINT32 tokenType);
477 ANTLR_UINT32 expectedTokenType,
Dantlr3bitset.inl11 ANTLR_INLINE BitsetList<ImplTraits>::BitsetList( ANTLR_BITWORD* bits, ANTLR_UINT32 length )
24 ANTLR_INLINE ANTLR_UINT32 BitsetList<ImplTraits>::get_length() const
36 ANTLR_INLINE void BitsetList<ImplTraits>::set_length( ANTLR_UINT32 length )
58 ANTLR_UINT32 count=0;
79 ANTLR_UINT32 numElements = m_length;
97 Bitset<ImplTraits>::Bitset( ANTLR_UINT32 numBits )
106 ANTLR_UINT32 numelements = ((numBits -1) >> ANTLR_BITSET_LOG_BITS) + 1;
159 ANTLR_UINT32 minimum;
179 for (ANTLR_UINT32 i = minimum; i > 0; i--)
184 ANTLR_UINT32 Bitset<ImplTraits>::size() const
[all …]
Dantlr3lexer.hpp67 static const ANTLR_UINT32 ANTLR_STRING_TERMINATOR = 0xFFFFFFFF;
100 Lexer(ANTLR_UINT32 sizeHint, RecognizerSharedStateType* state);
101 Lexer(ANTLR_UINT32 sizeHint, InputStreamType* input, RecognizerSharedStateType* state);
138 ANTLR_UINT32 LA(ANTLR_INT32 i);
221 ANTLR_UINT32 getLine();
223 ANTLR_UINT32 getCharPositionInLine();
237 ANTLR_UINT32 expectedTokenType, BitsetListType* follow);
Dantlr3filestream.inl16 ANTLR_UINT32 FileUtils<ImplTraits>::AntlrFsize(const ANTLR_UINT8* filename)
22 return (ANTLR_UINT32)statbuf.st_size;
26 ANTLR_UINT32 FileUtils<ImplTraits>::AntlrFread(ANTLR_FDSC fdsc, ANTLR_UINT32 count, void* data)
28 return (ANTLR_UINT32)fread(data, (size_t)count, 1, fdsc);
33 ANTLR_UINT32 FileUtils<ImplTraits>::AntlrRead8Bit(InputStreamType* input, const ANTLR_UINT8* fileNa…
36 ANTLR_UINT32 fSize;
Dantlr3filestream.hpp56 static ANTLR_UINT32 AntlrFsize(const ANTLR_UINT8* filename);
58 static ANTLR_UINT32 AntlrRead8Bit(InputStreamType* input, const ANTLR_UINT8* fileName);
59 static ANTLR_UINT32 AntlrFread(ANTLR_FDSC fdsc, ANTLR_UINT32 count, void* data);
Dantlr3commontree.inl75 ANTLR_UINT32 n;
76 ANTLR_UINT32 i;
162 typename CommonTree<ImplTraits>::TreeType* CommonTree<ImplTraits>::deleteChild(ANTLR_UINT32 i)
230 ANTLR_UINT32 indexToDelete;
255 ANTLR_UINT32 numToInsert;
294 ANTLR_UINT32 i;
295 ANTLR_UINT32 s;
322 ANTLR_UINT32 CommonTree<ImplTraits>::getCharPositionInLine()
343 typename CommonTree<ImplTraits>::TreeType* CommonTree<ImplTraits>::getChild(ANTLR_UINT32 i)
367 ANTLR_UINT32 CommonTree<ImplTraits>::getChildCount() const
[all …]
Dantlr3parser.hpp73 Parser( ANTLR_UINT32 sizeHint, RecognizerSharedStateType* state );
74 Parser( ANTLR_UINT32 sizeHint, TokenStreamType* tstream, RecognizerSharedStateType* state );
75 Parser( ANTLR_UINT32 sizeHint, TokenStreamType* tstream, DebugEventListenerType* dbg,
104 ANTLR_UINT32 expectedTokenType, BitsetListType* follow);
106 void mismatch(ANTLR_UINT32 ttype, BitsetListType* follow);
124 const CommonTokenType* matchToken( ANTLR_UINT32 ttype, BitsetListType* follow );
131 ANTLR_UINT32 LA(ANTLR_INT32 i);
Dantlr3input.inl4 InputStream<ImplTraits>::InputStream(const ANTLR_UINT8* fileName, ANTLR_UINT32 encoding)
30 InputStream<ImplTraits>::InputStream(const ANTLR_UINT8* data, ANTLR_UINT32 encoding, ANTLR_UINT32 s…
138 ANTLR_INLINE ANTLR_UINT32 InputStream<ImplTraits>::get_sizeBuf() const
143 ANTLR_INLINE ANTLR_UINT32 InputStream<ImplTraits>::get_line() const
158 ANTLR_INLINE ANTLR_UINT32 InputStream<ImplTraits>::get_markDepth() const
173 ANTLR_INLINE ANTLR_UINT32 InputStream<ImplTraits>::get_fileNo() const
188 ANTLR_INLINE ANTLR_UINT32 InputStream<ImplTraits>::get_encoding() const
208 ANTLR_INLINE void InputStream<ImplTraits>::set_sizeBuf( ANTLR_UINT32 sizeBuf )
213 ANTLR_INLINE void InputStream<ImplTraits>::set_line( ANTLR_UINT32 line )
228 ANTLR_INLINE void InputStream<ImplTraits>::set_markDepth( ANTLR_UINT32 markDepth )
[all …]
Dantlr3exception.inl47 ANTLR_INLINE ANTLR_UINT32 ANTLR_ExceptionBase<ImplTraits, StreamType>::get_expecting() const
67 ANTLR_INLINE ANTLR_UINT32 ANTLR_ExceptionBase<ImplTraits, StreamType>::get_line() const
77 ANTLR_INLINE ANTLR_UINT32 ANTLR_ExceptionBase<ImplTraits, StreamType>::get_decisionNum() const
82 ANTLR_INLINE ANTLR_UINT32 ANTLR_ExceptionBase<ImplTraits, StreamType>::get_state() const
122 ANTLR_INLINE void ANTLR_ExceptionBase<ImplTraits, StreamType>::set_expecting( ANTLR_UINT32 expectin…
142 ANTLR_INLINE void ANTLR_ExceptionBase<ImplTraits, StreamType>::set_line( ANTLR_UINT32 line )
152 ANTLR_INLINE void ANTLR_ExceptionBase<ImplTraits, StreamType>::set_decisionNum( ANTLR_UINT32 decisi…
157 ANTLR_INLINE void ANTLR_ExceptionBase<ImplTraits, StreamType>::set_state( ANTLR_UINT32 state )
186 ANTLR_UINT32 ANTLR_Exception<ImplTraits, Ex, StreamType>::getType() const
188 return static_cast<ANTLR_UINT32>(Ex);
[all …]
Dantlr3treeparser.hpp64 TreeParser( ANTLR_UINT32 sizeHint, TreeNodeStreamType* ctnstream,
84 ANTLR_UINT32 expectedTokenType,
94 void mismatch(ANTLR_UINT32 ttype, BitsetListType* follow);
Dantlr3recognizersharedstate.inl30 ANTLR_INLINE ANTLR_UINT32 RecognizerSharedState<ImplTraits, StreamType>::get_sizeHint() const
69 ANTLR_INLINE ANTLR_UINT32 RecognizerSharedState<ImplTraits, StreamType>::get_errorCount() const
89 …E ANTLR_UINT8* RecognizerSharedState<ImplTraits, StreamType>::get_tokenName( ANTLR_UINT32 i ) const
104 ANTLR_INLINE ANTLR_UINT32& RecognizerSharedState<ImplTraits, StreamType>::get_channel()
109 ANTLR_INLINE ANTLR_UINT32 RecognizerSharedState<ImplTraits, StreamType>::get_type() const
149 ANTLR_INLINE void RecognizerSharedState<ImplTraits, StreamType>::set_sizeHint( ANTLR_UINT32 sizeHin…
179 ANTLR_INLINE void RecognizerSharedState<ImplTraits, StreamType>::set_errorCount( ANTLR_UINT32 error…
205 ANTLR_INLINE void RecognizerSharedState<ImplTraits, StreamType>::set_channel( ANTLR_UINT32 channel )
219 ANTLR_INLINE void RecognizerSharedState<ImplTraits, StreamType>::set_type( ANTLR_UINT32 type )
Dantlr3commontoken.inl18 CommonToken<ImplTraits>::CommonToken(ANTLR_UINT32 type)
171 ANTLR_INLINE ANTLR_UINT32 CommonToken<ImplTraits>::get_type() const
177 ANTLR_INLINE ANTLR_UINT32 CommonToken<ImplTraits>::getType() const
183 ANTLR_INLINE void CommonToken<ImplTraits>::set_type(ANTLR_UINT32 ttype)
189 ANTLR_INLINE ANTLR_UINT32 CommonToken<ImplTraits>::get_line() const
195 ANTLR_INLINE void CommonToken<ImplTraits>::set_line(ANTLR_UINT32 line)
219 ANTLR_INLINE ANTLR_UINT32 CommonToken<ImplTraits>::get_channel() const
225 ANTLR_INLINE void CommonToken<ImplTraits>::set_channel(ANTLR_UINT32 channel)
Dantlr3tokenstream.inl290 CommonTokenStream<ImplTraits>::CommonTokenStream(ANTLR_UINT32 , TokenSourceType* source, argument
443 if ( (ANTLR_UINT32) i >= this->get_istream()->get_cachedSize() )
534 TokenType& tok = m_tokens.at( static_cast<ANTLR_UINT32>(tok_idx) );
627 void CommonTokenStream<ImplTraits>::setTokenTypeChannel ( ANTLR_UINT32 ttype, ANTLR_UINT32 channel)
632 m_channelOverrides[ttype] = (ANTLR_UINT32)channel + 1;
663 void CommonTokenStream<ImplTraits>::getTokenRange(ANTLR_UINT32 start, ANTLR_UINT32 stop,
675 CommonTokenStream<ImplTraits>::getTokensSet(ANTLR_UINT32 start, ANTLR_UINT32 stop, BitsetType* type…
678 ANTLR_UINT32 i;
679 ANTLR_UINT32 n;
716 CommonTokenStream<ImplTraits>::getTokensList(ANTLR_UINT32 start, ANTLR_UINT32 stop,
[all …]

12