Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFinished is returned on Start() when Lexer was started before and has not finished yet ErrNotFinished = errors.New("lexer still not finished lexing") // ErrInputStreamNil is returned on Start() if the given inputStream is nil ErrInputStreamNil = errors.New("input stream should not be nil") )
Functions ¶
func CombineStreams ¶
CombineStreams creates a sequence of the given streams, processing all successively.
func StreamFromFile ¶
StreamFromFile returns a read only rune channel representing the given file content.
func StreamFromString ¶
StreamFromString returns a read only rune channel representing the given string.
Types ¶
Click to show internal directories.
Click to hide internal directories.