Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StdScanner ¶
type StdScanner struct {
// contains filtered or unexported fields
}
The standard scanner. It uses the "text/scanner" package.
func (*StdScanner) FirstToken ¶
func (s *StdScanner) FirstToken() *Token
Returns the first token. This method should only called once. The names of the token types are derived from the "text/scanner" package.
func (*StdScanner) Init ¶
func (s *StdScanner) Init(kmap map[string]string, src io.Reader) *StdScanner
Initializes the Scanner.
kmap map[string]string: the keyword map. Initialize with SyntaxFile.ScanForKeyWords
src io.Reader: the source code.
Click to show internal directories.
Click to hide internal directories.