Note for later
This commit is contained in:
parent
5c2df7f837
commit
862e6b1e25
|
@ -108,6 +108,7 @@ type Lexer interface {
|
|||
// NewLexer creates a new default lexer that reads from the given reader. The
|
||||
// filename parameter is used for token locations and error messages.
|
||||
func NewLexer (filename string, reader io.Reader) (Lexer, error) {
|
||||
// TODO: replace this function with LexReader and LexFile functions
|
||||
lexer := &fsplLexer {
|
||||
filename: filename,
|
||||
lineScanner: bufio.NewScanner(reader),
|
||||
|
|
Loading…
Reference in New Issue