Home
last modified time | relevance | path

Searched refs:IToken (Results 1 – 25 of 99) sorted by relevance

1234

/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DBufferedTokenStream.cs65 protected List<IToken> _tokens = new List<IToken>(100);
134 public virtual IToken LastToken
142 public virtual IToken LastRealToken
147 IToken token;
228 IToken t = TokenSource.NextToken(); in Fetch()
236 public virtual IToken Get(int i) in Get()
249 public virtual List<IToken> Get(int start, int count) in Get()
261 List<IToken> subset = new List<IToken>(count); in Get()
264 IToken token = _tokens[i]; in Get()
280 protected virtual IToken LB(int k) in LB()
[all …]
DLegacyCommonTokenStream.cs60 protected List<IToken> tokens;
86 tokens = new List<IToken>( 500 ); in LegacyCommonTokenStream()
140 IToken t = _tokenSource.NextToken(); in FillBuffer()
203 while ( i < n && ( (IToken)tokens[i] ).Channel != channel ) in SkipOffTokenChannels()
212 while ( i >= 0 && ( (IToken)tokens[i] ).Channel != channel ) in SkipOffTokenChannelsReverse()
250 public virtual IList<IToken> GetTokens() in GetTokens()
259 public virtual IList<IToken> GetTokens( int start, int stop ) in GetTokens()
270 public virtual IList<IToken> GetTokens( int start, int stop, BitSet types ) in GetTokens()
290 IList<IToken> filteredTokens = new List<IToken>(); in GetTokens()
293 IToken t = tokens[i]; in GetTokens()
[all …]
DUnbufferedTokenStream.cs55 …public class UnbufferedTokenStream : LookaheadStream<IToken>, ITokenStream, ITokenStreamInformation
64 private readonly ListStack<IToken> _realTokens = new ListStack<IToken>() { null };
89 public IToken LastToken
97 public IToken LastRealToken
140 public override IToken NextElement() in NextElement()
142 IToken t = this.tokenSource.NextToken(); in NextElement()
147 public override bool IsEndOfFile(IToken o) in IsEndOfFile()
152 public IToken Get(int i) in Get()
167 public string ToString(IToken start, IToken stop) in ToString()
DITokenStream.cs44 IToken LT( int k ); in LT()
64 IToken Get( int i ); in Get()
93 string ToString( IToken start, IToken stop ); in ToString()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DBufferedTokenStream.cs63 protected List<IToken> _tokens = new List<IToken>(100);
120 public virtual IToken LastToken {
126 public virtual IToken LastRealToken {
129 IToken token;
197 IToken t = TokenSource.NextToken(); in Fetch()
205 public virtual IToken Get(int i) { in Get()
216 public virtual List<IToken> Get(int start, int count) in Get()
228 List<IToken> subset = new List<IToken>(count); in Get()
231 IToken token = _tokens[i]; in Get()
246 protected virtual IToken LB(int k) { in LB()
[all …]
DLegacyCommonTokenStream.cs61 protected List<IToken> tokens;
86 tokens = new List<IToken>(500); in LegacyCommonTokenStream()
133 IToken t = _tokenSource.NextToken(); in FillBuffer()
188 while (i < n && ((IToken)tokens[i]).Channel != channel) { in SkipOffTokenChannels()
195 while (i >= 0 && ((IToken)tokens[i]).Channel != channel) { in SkipOffTokenChannelsReverse()
227 public virtual IList<IToken> GetTokens() { in GetTokens()
234 public virtual IList<IToken> GetTokens(int start, int stop) { in GetTokens()
244 public virtual IList<IToken> GetTokens(int start, int stop, BitSet types) { in GetTokens()
259 IList<IToken> filteredTokens = new List<IToken>(); in GetTokens()
261 IToken t = tokens[i]; in GetTokens()
[all …]
DUnbufferedTokenStream.cs54 public class UnbufferedTokenStream : LookaheadStream<IToken>, ITokenStream {
78 public override IToken NextElement() { in NextElement()
79 IToken t = this.tokenSource.NextToken(); in NextElement()
84 public override bool IsEndOfFile(IToken o) { in IsEndOfFile()
88 public IToken Get(int i) { in Get()
100 public string ToString(IToken start, IToken stop) { in ToString()
DITokenStream.cs42 IToken LT(int k); in LT()
61 IToken Get(int i); in Get()
89 string ToString(IToken start, IToken stop); in ToString()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DITreeAdaptor.cs63 object Create(IToken payload); in Create()
75 object Create(int tokenType, IToken fromToken); in Create()
87 object Create(int tokenType, IToken fromToken, string text); in Create()
99 object Create(IToken fromToken, string text); in Create()
153 object ErrorNode( ITokenStream input, IToken start, IToken stop, RecognitionException e ); in ErrorNode()
250 object BecomeRoot( IToken newRoot, object oldRoot ); in BecomeRoot()
279 IToken GetToken( object t ); in GetToken()
289 void SetTokenBoundaries( object t, IToken startToken, IToken stopToken ); in SetTokenBoundaries()
DCommonErrorNode.cs41 public IToken start;
42 public IToken stop;
45 public CommonErrorNode( ITokenStream input, IToken start, IToken stop, in CommonErrorNode()
78 if ( start is IToken )
80 int i = ( (IToken)start ).TokenIndex;
81 int j = ( (IToken)stop ).TokenIndex;
82 if ( ( (IToken)stop ).Type == TokenTypes.EndOfFile )
DParseTree.cs50 public List<IToken> hiddenTokens;
107 if ( payload is IToken ) in ToString()
109 IToken t = (IToken)payload; in ToString()
131 IToken hidden = (IToken)hiddenTokens[i]; in ToStringWithHiddenTokens()
155 if ( payload is IToken ) in ToStringLeaves()
DBaseTreeAdaptor.cs74 public virtual object ErrorNode( ITokenStream input, IToken start, IToken stop, in ErrorNode()
237 public virtual object BecomeRoot( IToken newRoot, object oldRoot ) in BecomeRoot()
242 public virtual object Create( int tokenType, IToken fromToken ) in Create()
250 public virtual object Create( int tokenType, IToken fromToken, string text ) in Create()
262 public virtual object Create(IToken fromToken, string text) in Create()
275 IToken fromToken = CreateToken( tokenType, text ); in Create()
371 public abstract IToken CreateToken( int tokenType, string text ); in CreateToken()
391 public abstract IToken CreateToken( IToken fromToken ); in CreateToken()
393 public abstract object Create( IToken payload ); in Create()
414 public abstract IToken GetToken( object t ); in GetToken()
[all …]
DCommonTreeAdaptor.cs52 public override object Create( IToken payload ) in Create()
69 public override IToken CreateToken( int tokenType, string text ) in CreateToken()
92 public override IToken CreateToken( IToken fromToken ) in CreateToken()
103 public override IToken GetToken( object t ) in GetToken()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DITreeAdaptor.cs61 object Create(IToken payload); in Create()
97 object ErrorNode(ITokenStream input, IToken start, IToken stop, RecognitionException e); in ErrorNode()
194 object BecomeRoot(IToken newRoot, object oldRoot); in BecomeRoot()
206 object Create(int tokenType, IToken fromToken); in Create()
218 object Create(int tokenType, IToken fromToken, string text); in Create()
259 IToken GetToken(object t); in GetToken()
269 void SetTokenBoundaries(object t, IToken startToken, IToken stopToken); in SetTokenBoundaries()
DBaseTreeAdaptor.cs70 public virtual object ErrorNode(ITokenStream input, IToken start, IToken stop, in ErrorNode()
194 public virtual object BecomeRoot(IToken newRoot, object oldRoot) { in BecomeRoot()
198 public virtual object Create(int tokenType, IToken fromToken) { in Create()
206 public virtual object Create(int tokenType, IToken fromToken, string text) { in Create()
218 IToken fromToken = CreateToken(tokenType, text); in Create()
283 public abstract IToken CreateToken(int tokenType, string text); in CreateToken()
303 public abstract IToken CreateToken(IToken fromToken); in CreateToken()
305 public abstract object Create(IToken payload); in Create()
307 public abstract IToken GetToken(object t); in GetToken()
308 public abstract void SetTokenBoundaries(object t, IToken startToken, IToken stopToken); in SetTokenBoundaries()
DCommonErrorNode.cs39 public IToken start;
40 public IToken stop;
43 public CommonErrorNode(ITokenStream input, IToken start, IToken stop, in CommonErrorNode()
70 if (start is IToken) {
71 int i = ((IToken)start).TokenIndex;
72 int j = ((IToken)stop).TokenIndex;
73 if (((IToken)stop).Type == TokenTypes.EndOfFile) {
DParseTree.cs48 public List<IToken> hiddenTokens;
90 if (payload is IToken) { in ToString()
91 IToken t = (IToken)payload; in ToString()
109 IToken hidden = (IToken)hiddenTokens[i]; in ToStringWithHiddenTokens()
131 if (payload is IToken) { // leaf node token? in ToStringLeaves()
DCommonTreeAdaptor.cs67 public override object Create(IToken payload) { in Create()
83 public override IToken CreateToken(int tokenType, string text) { in CreateToken()
105 public override IToken CreateToken(IToken fromToken) { in CreateToken()
116 public override void SetTokenBoundaries(object t, IToken startToken, IToken stopToken) { in SetTokenBoundaries()
167 public override IToken GetToken(object t) { in GetToken()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/
DSlimToken.cs40 : IToken
53 #region IToken Members
55 string IToken.Text
78 int IToken.Line
89 int IToken.CharPositionInLine
136 int IToken.TokenIndex
147 ICharStream IToken.InputStream
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/Tree/
DITreeAdaptor`1.cs49 T Create(IToken payload); in Create()
85 T ErrorNode(ITokenStream input, IToken start, IToken stop, RecognitionException e); in ErrorNode()
182 T BecomeRoot(IToken newRoot, T oldRoot); in BecomeRoot()
194 T Create(int tokenType, IToken fromToken); in Create()
206 T Create(int tokenType, IToken fromToken, string text); in Create()
247 IToken GetToken(T t); in GetToken()
257 void SetTokenBoundaries(T t, IToken startToken, IToken stopToken); in SetTokenBoundaries()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/
DProfileGrammarParser.cs274 IToken NEWLINE3=null; in stat()
275 IToken ID4=null; in stat()
276 IToken char_literal5=null; in stat()
277 IToken NEWLINE7=null; in stat()
278 IToken NEWLINE9=null; in stat()
279 IToken NEWLINE10=null; in stat()
344 NEWLINE3=(IToken)Match(input,NEWLINE,Follow._NEWLINE_in_stat72); in stat()
379 ID4=(IToken)Match(input,ID,Follow._ID_in_stat105); in stat()
383 char_literal5=(IToken)Match(input,17,Follow._17_in_stat107); in stat()
394 NEWLINE7=(IToken)Match(input,NEWLINE,Follow._NEWLINE_in_stat111); in stat()
[all …]
DDebugGrammarParser.cs270 IToken NEWLINE3=null; in stat()
271 IToken ID4=null; in stat()
272 IToken char_literal5=null; in stat()
273 IToken NEWLINE7=null; in stat()
274 IToken NEWLINE9=null; in stat()
275 IToken NEWLINE10=null; in stat()
340 NEWLINE3=(IToken)Match(input,NEWLINE,Follow._NEWLINE_in_stat72); in stat()
375 ID4=(IToken)Match(input,ID,Follow._ID_in_stat105); in stat()
379 char_literal5=(IToken)Match(input,17,Follow._17_in_stat107); in stat()
390 NEWLINE7=(IToken)Match(input,NEWLINE,Follow._NEWLINE_in_stat111); in stat()
[all …]
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.pas229 IToken = interface(IANTLRInterface) interface
302 function NextToken: IToken;
330 function LT(const K: Integer): IToken;
340 function Get(const I: Integer): IToken;
355 function ToString(const Start, Stop: IToken): String; overload;
508 function GetToken: IToken; in GetToken()
509 procedure SetToken(const Value: IToken); argument
598 property Token: IToken read GetToken write SetToken;
630 ICommonToken = interface(IToken)
657 IClassicToken = interface(IToken)
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugTreeAdaptor.cs61 public virtual object Create(IToken payload) { in Create()
71 public virtual object ErrorNode(ITokenStream input, IToken start, IToken stop, in ErrorNode()
134 public virtual void AddChild(object t, IToken child) { in AddChild()
139 public virtual object BecomeRoot(IToken newRoot, object oldRoot) { in BecomeRoot()
146 public virtual object Create(int tokenType, IToken fromToken) { in Create()
152 public virtual object Create(int tokenType, IToken fromToken, string text) { in Create()
180 public virtual IToken GetToken(object t) { in GetToken()
184 public virtual void SetTokenBoundaries(object t, IToken startToken, IToken stopToken) { in SetTokenBoundaries()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugTreeAdaptor.cs64 public virtual object Create( IToken payload ) in Create()
76 public virtual object ErrorNode( ITokenStream input, IToken start, IToken stop, in ErrorNode()
172 public virtual void AddChild( object t, IToken child ) in AddChild()
178 public virtual object BecomeRoot( IToken newRoot, object oldRoot ) in BecomeRoot()
186 public virtual object Create( int tokenType, IToken fromToken ) in Create()
193 public virtual object Create( int tokenType, IToken fromToken, string text ) in Create()
207 public object Create(IToken fromToken, string text) in Create()
234 public virtual IToken GetToken( object t ) in GetToken()
239 public virtual void SetTokenBoundaries( object t, IToken startToken, IToken stopToken ) in SetTokenBoundaries()

1234