2023-08-17 05:15:28 +00:00
|
|
|
// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
|
2023-05-29 21:03:29 +00:00
|
|
|
// Use of this file is governed by the BSD 3-clause license that
|
|
|
|
// can be found in the LICENSE.txt file in the project root.
|
|
|
|
|
|
|
|
package antlr
|
|
|
|
|
|
|
|
type TokenStream interface {
|
|
|
|
IntStream
|
|
|
|
|
|
|
|
LT(k int) Token
|
2024-08-19 08:01:33 +00:00
|
|
|
Reset()
|
2023-05-29 21:03:29 +00:00
|
|
|
|
|
|
|
Get(index int) Token
|
|
|
|
GetTokenSource() TokenSource
|
|
|
|
SetTokenSource(TokenSource)
|
|
|
|
|
|
|
|
GetAllText() string
|
2024-08-19 08:01:33 +00:00
|
|
|
GetTextFromInterval(Interval) string
|
2023-05-29 21:03:29 +00:00
|
|
|
GetTextFromRuleContext(RuleContext) string
|
|
|
|
GetTextFromTokens(Token, Token) string
|
|
|
|
}
|