Note for later

This commit is contained in:
Sasha Koshka 2024-02-09 00:44:18 -05:00
parent 5c2df7f837
commit 862e6b1e25
1 changed files with 1 additions and 0 deletions

View File

@ -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),