Searched defs:ttype (Results 1 - 25 of 67) sorted by path

123

/external/antlr/antlr-3.4/lib/
H A Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ...
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3baserecognizer.c54 static void * match (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
56 static void mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
57 static ANTLR3_BOOLEAN mismatchIsUnwantedToken (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM is, ANTLR3_UINT32 ttype);
64 static void * recoverFromMismatchedToken (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
405 /// Match current input symbol against ttype. Upon error, do one token
416 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow)
453 if (is->_LA(is, 1) == ttype)
478 matchedSymbol = recognizer->recoverFromMismatchedToken(recognizer, ttype, follow);
529 mismatchIsUnwantedToken(pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM is, ANTLR3_UINT32 ttype) argument
535 if (nextt == ttype)
415 match( pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow) argument
642 mismatch(pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow) argument
1432 recoverFromMismatchedToken(pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow) argument
1718 ANTLR3_UINT32 ttype; local
1768 ANTLR3_UINT32 ttype; local
[all...]
H A Dantlr3commontoken.c73 antlr3CommonTokenNew(ANTLR3_UINT32 ttype) argument
83 token->setType(token, ttype);
H A Dantlr3commontreenodestream.c43 static void addNavigationNode (pANTLR3_COMMON_TREE_NODE_STREAM ctns, ANTLR3_UINT32 ttype);
752 addNavigationNode (pANTLR3_COMMON_TREE_NODE_STREAM ctns, ANTLR3_UINT32 ttype) argument
758 if (ttype == ANTLR3_TOKEN_DOWN)
H A Dantlr3tokenstream.c42 static void setTokenTypeChannel (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_UINT32 ttype, ANTLR3_UINT32 channel);
43 static void discardTokenType (pANTLR3_COMMON_TOKEN_STREAM cts, ANTLR3_INT32 ttype);
660 * to force all tokens of type ttype to be on channel. For example,
666 setTokenTypeChannel (pANTLR3_COMMON_TOKEN_STREAM tokenStream, ANTLR3_UINT32 ttype, ANTLR3_UINT32 channel) argument
676 tokenStream->channelOverrides->put(tokenStream->channelOverrides, ttype, ANTLR3_FUNC_PTR((ANTLR3_UINT32)channel + 1), NULL);
680 discardTokenType (pANTLR3_COMMON_TOKEN_STREAM tokenStream, ANTLR3_INT32 ttype) argument
690 tokenStream->discardSet->put(tokenStream->discardSet, ttype, ANTLR3_FUNC_PTR((ANTLR3_UINT32)ttype + 1), NULL);
H A Dantlr3treeparser.c38 static void mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
174 mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow) argument
177 recognizer->recoverFromMismatchedToken(recognizer, ttype, follow);
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
H A DBaseTree.cs379 public virtual bool HasAncestor(int ttype) { argument
380 return GetAncestor(ttype) != null;
384 public virtual ITree GetAncestor(int ttype) { argument
388 if (t.Type == ttype)
H A DBufferedTreeNodeStream.cs297 protected virtual void AddNavigationNode(int ttype) { argument
299 if (ttype == TokenTypes.Down) {
H A DITree.cs65 /** <summary>Is there is a node above with token type ttype?</summary> */
66 bool HasAncestor(int ttype); argument
69 ITree GetAncestor(int ttype); argument
H A DTreeParser.cs145 protected override object RecoverFromMismatchedToken(IIntStream input, int ttype, BitSet follow) { argument
146 throw new MismatchedTreeNodeException(ttype, (ITreeNodeStream)input);
H A DTreePatternParser.cs38 protected int ttype; field in class:Antlr.Runtime.Tree.TreePatternParser
46 ttype = tokenizer.NextToken(); // kickstart
50 if (ttype == TreePatternLexer.BEGIN) {
52 } else if (ttype == TreePatternLexer.ID) {
54 if (ttype == TreePatternLexer.EOF) {
63 if (ttype != TreePatternLexer.BEGIN)
66 ttype = tokenizer.NextToken();
71 while (ttype == TreePatternLexer.BEGIN ||
72 ttype == TreePatternLexer.ID ||
73 ttype
[all...]
H A DTreeWizard.cs184 for (int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++) {
185 string name = tokenNames[ttype];
186 m[name] = ttype;
226 int ttype = adaptor.GetType(t);
228 if (!m.TryGetValue(ttype, out elements) || elements == null) {
230 m[ttype] = elements;
266 /** <summary>Return a List of tree nodes with token type ttype</summary> */
267 public virtual IList Find(object t, int ttype) { argument
292 FindFirst(object t, int ttype) argument
307 Visit(object t, int ttype, IContextVisitor visitor) argument
311 Visit(object t, int ttype, System.Action<object> action) argument
316 VisitCore(object t, object parent, int childIndex, int ttype, IContextVisitor visitor) argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
H A DBaseRecognizer.cs117 * Match current input symbol against ttype. Attempt
131 public virtual object Match(IIntStream input, int ttype, BitSet follow) { argument
134 if (input.LA(1) == ttype) {
144 matchedSymbol = RecoverFromMismatchedToken(input, ttype, follow);
155 public virtual bool MismatchIsUnwantedToken(IIntStream input, int ttype) { argument
156 return input.LA(2) == ttype;
599 * ttype then it is ok to "insert" the missing token, else throw
616 protected virtual object RecoverFromMismatchedToken(IIntStream input, int ttype, BitSet follow) { argument
619 if (MismatchIsUnwantedToken(input, ttype)) {
620 e = new UnwantedTokenException(ttype, inpu
[all...]
H A DBufferedTokenStream.cs319 public virtual List<IToken> GetTokens(int start, int stop, int ttype) { argument
320 return GetTokens(start, stop, BitSet.Of(ttype));
H A DLegacyCommonTokenStream.cs203 * to force all tokens of type ttype to be on channel. For example,
209 public virtual void SetTokenTypeChannel(int ttype, int channel) { argument
213 channelOverrideMap[ttype] = channel;
216 public virtual void DiscardTokenType(int ttype) { argument
220 discardSet.Add(ttype, ttype);
276 public virtual IList<IToken> GetTokens(int start, int stop, int ttype) { argument
277 return GetTokens(start, stop, BitSet.Of(ttype));
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
H A DBaseRecognizer.cs127 * Match current input symbol against ttype. Attempt
141 public virtual object Match( IIntStream input, int ttype, BitSet follow ) argument
145 if ( input.LA( 1 ) == ttype )
157 matchedSymbol = RecoverFromMismatchedToken( input, ttype, follow );
169 public virtual bool MismatchIsUnwantedToken( IIntStream input, int ttype )
171 return input.LA( 2 ) == ttype;
678 * ttype then it is ok to "insert" the missing token, else throw
695 protected virtual object RecoverFromMismatchedToken( IIntStream input, int ttype, BitSet follow ) argument
699 if ( MismatchIsUnwantedToken( input, ttype ) )
701 e = new UnwantedTokenException( ttype, inpu
[all...]
H A DBufferedTokenStream.cs364 public virtual List<IToken> GetTokens(int start, int stop, int ttype) argument
366 return GetTokens(start, stop, BitSet.Of(ttype));
H A DLegacyCommonTokenStream.cs221 * to force all tokens of type ttype to be on channel. For example,
227 public virtual void SetTokenTypeChannel( int ttype, int channel ) argument
233 channelOverrideMap[ttype] = channel;
236 public virtual void DiscardTokenType( int ttype )
242 discardSet.Add( ttype );
311 public virtual IList<IToken> GetTokens( int start, int stop, int ttype )
313 return GetTokens( start, stop, BitSet.Of( ttype ) );
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
H A DTreeParser.cs159 protected override object RecoverFromMismatchedToken( IIntStream input, int ttype, BitSet follow ) argument
161 throw new MismatchedTreeNodeException( ttype, (ITreeNodeStream)input );
H A DTreePatternParser.cs40 protected int ttype; field in class:Antlr.Runtime.Tree.TreePatternParser
49 ttype = tokenizer.NextToken(); // kickstart
54 if ( ttype == TreePatternLexer.Begin )
58 else if ( ttype == TreePatternLexer.Id )
61 if ( ttype == CharStreamConstants.EndOfFile )
72 if ( ttype != TreePatternLexer.Begin )
75 ttype = tokenizer.NextToken();
81 while ( ttype == TreePatternLexer.Begin ||
82 ttype == TreePatternLexer.Id ||
83 ttype
[all...]
H A DTreeWizard.cs208 for ( int ttype = TokenTypes.Min; ttype < tokenNames.Length; ttype++ )
210 string name = tokenNames[ttype];
211 m[name] = ttype;
256 int ttype = adaptor.GetType( t );
258 if ( !m.TryGetValue( ttype, out elements ) || elements == null )
261 m[ttype] = elements;
305 /** <summary>Return a List of tree nodes with token type ttype</summary> */
306 public virtual IList Find( object t, int ttype )
351 Visit( object t, int ttype, IContextVisitor visitor ) argument
356 Visit( object t, int ttype, System.Action<object> action ) argument
362 VisitCore( object t, object parent, int childIndex, int ttype, IContextVisitor visitor ) argument
[all...]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DBaseRecognizer.java89 /** Match current input symbol against ttype. Attempt
100 public Object match(IntStream input, int ttype, BitSet follow) argument
105 if ( input.LA(1)==ttype ) {
115 matchedSymbol = recoverFromMismatchedToken(input, ttype, follow);
126 public boolean mismatchIsUnwantedToken(IntStream input, int ttype) { argument
127 return input.LA(2)==ttype;
571 * ttype then it is ok to "insert" the missing token, else throw
588 protected Object recoverFromMismatchedToken(IntStream input, int ttype, BitSet follow) argument
593 if ( mismatchIsUnwantedToken(input, ttype) ) {
594 e = new UnwantedTokenException(ttype, inpu
[all...]
H A DBufferedTokenStream.java227 public List getTokens(int start, int stop, int ttype) { argument
228 return getTokens(start,stop,BitSet.of(ttype));
H A DLegacyCommonTokenStream.java161 * to force all tokens of type ttype to be on channel. For example,
166 public void setTokenTypeChannel(int ttype, int channel) { argument
170 channelOverrideMap.put(new Integer(ttype), new Integer(channel));
173 public void discardTokenType(int ttype) { argument
177 discardSet.add(new Integer(ttype));
231 public List getTokens(int start, int stop, int ttype) { argument
232 return getTokens(start,stop,BitSet.of(ttype));
H A DSerializedGrammar.java78 int ttype; field in class:SerializedGrammar.TokenRef
79 public TokenRef(int ttype) { this.ttype = ttype; } argument
80 public String toString() { return String.valueOf(ttype); }
153 int ttype = in.readShort();
154 alt.add(new TokenRef(ttype));
155 //System.out.println("read token "+gr.getTokenDisplayName(ttype));

Completed in 566 milliseconds

123