Documentation ¶
Index ¶
Constants ¶
View Source
const COLOR_BG = '_'
View Source
const COLOR_FG = '^'
View Source
const COMMENT = '!'
View Source
const CONTROL = '/'
View Source
const EOF rune = 0
View Source
const MEDIA = '@'
View Source
const TITLE = '#'
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer with an input, tokens and a state. Internally it tracks also a start pointer, a position pointer and the width of the current lexed item.
func BeginLexing ¶
BeginLexing returns a new Lexer with a given input, a start state and a buffered Token channel.
Click to show internal directories.
Click to hide internal directories.