Discover Packages
github.com/campoy/groto
scanner
package
Version:
v0.0.0-...-3a9de2f
Opens a new window with list of versions in this module.
Published: Jan 18, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package scanner provides the Scanner type that is able to read from any
io.Reader and generate tokens.
A Scanner scans tokens from the io.Reader given at construction.
New creates a new Scanner reading from the given io.Reader.
Scan returns the next token found in the given io.Reader.
If an error occurs the Token will be of kind Illegal, and
the text includes information about the error.
If the io.Reader reaches EOF, the token will be of kind EOF.
A Token is defined by its kind, and sometimes by some text.
String returns a human readable representation of a Token.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.