Documentation ¶
Index ¶
Constants ¶
View Source
const EOF = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer holds the required information to run several state machines.
type State ¶
type State struct { Text string Start int // the beginning cursor position of a selection of the Text field Current int // the current cursor position of a selection of the Text field Width int // contains filtered or unexported fields }
State holds the current state of the currently running state machine.
func (*State) Back ¶
func (s *State) Back()
Back moves the current cursor position backward by one rune.
Click to show internal directories.
Click to hide internal directories.