Documentation ¶
Index ¶
- type Lexer
- func (l *Lexer) ByteSlice(reference document.ByteSliceReference) document.ByteSlice
- func (l *Lexer) Peek(ignoreWhitespace bool) keyword.Keyword
- func (l *Lexer) Read() (tok token.Token)
- func (l *Lexer) SetExecutableInput(input []byte) error
- func (l *Lexer) SetTypeSystemInput(input []byte) error
- func (l *Lexer) TextPosition() position.Position
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer emits tokens from a input reader
func (*Lexer) ByteSlice ¶ added in v1.0.0
func (l *Lexer) ByteSlice(reference document.ByteSliceReference) document.ByteSlice
func (*Lexer) Peek ¶ added in v1.0.0
Peek will emit the next keyword without advancing the reader position
func (*Lexer) SetExecutableInput ¶ added in v1.0.0
func (*Lexer) SetTypeSystemInput ¶ added in v1.0.0
SetTypeSystemInput sets the new reader as input and resets all position stats
func (*Lexer) TextPosition ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.