Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
Err error // Optional error occurred during the parse
// Represents a token that has been read the last time
Tok struct {
Kind TokenKind
Pos Pos // A zero-based line and column indexes of the token
Value string // Optional value of the token
}
// contains filtered or unexported fields
}
type Pos ¶
type Pos struct {
// contains filtered or unexported fields
}
Represents a zero-based position of the token in the input.
type TokenKind ¶
type TokenKind int
func (TokenKind) MessageString ¶
MessageString gets a representation of the token kind based on whether it corresponds to a known character sequence or must correspond an arbitrary value.
Click to show internal directories.
Click to hide internal directories.