Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner converts a sequence of characters into a sequence of tokens.
func (*Scanner) NextToken ¶
NextToken scans the next token and returns the token position, the token, and its literal string if applicable. The source end is indicated by token.EOF.
If the returned token is a literal (token.Identifier, token.Value, token.RawValue) or token.Comment, the literal string has the corresponding value.
If the returned token is token.Illegal, the literal string is the offending character.
Click to show internal directories.
Click to hide internal directories.