Documentation ¶
Index ¶
- Variables
- func CountLexemes(lexer ILexer) int
- func CountLexemesR(reader io.Reader) int
- type ILexer
- type Lexeme
- func (l *Lexeme) Apply(pos int, last bool, token tokens.Token) *Lexeme
- func (l *Lexeme) Copy() Lexeme
- func (l *Lexeme) Finish() int
- func (l *Lexeme) IsEof() bool
- func (l *Lexeme) IsLastInStatement() bool
- func (l *Lexeme) IsUndefined() bool
- func (l *Lexeme) Len() int
- func (l *Lexeme) Start() int
- func (l *Lexeme) StatementPosition() int
- func (l *Lexeme) Value() string
Constants ¶
This section is empty.
Variables ¶
View Source
var NullLexeme = Lexeme{}
Functions ¶
func CountLexemes ¶
func CountLexemesR ¶
Types ¶
type ILexer ¶
type ILexer interface {
Next() *Lexeme
}
func New ¶
func New(tokenizer tokens.ITokenizer) ILexer
type Lexeme ¶
type Lexeme struct {
// contains filtered or unexported fields
}
Lexeme описатель лексемы в тексте
func ReadLexemeList ¶
func ReadLexemeListS ¶
func (*Lexeme) IsLastInStatement ¶
func (*Lexeme) IsUndefined ¶
func (*Lexeme) StatementPosition ¶
Click to show internal directories.
Click to hide internal directories.