A parser is generated with
go tool yacc foo.y
But there is no go tool lex command, so how do I generate a lexer from foo.l?
go tool lex
foo.l