mirror of
https://github.com/golang/go
synced 2024-10-04 11:11:21 -06:00
6c3befc824
Instead of calling the package scope Lex function, Parse now takes an argument which is used to do the lexing. I reverted to having the generated switch code inside Parse rather than a separate function because the function needs 7 arguments or a context structure, which seems unnecessary. I used yyrun(), not the original $A so that it's possible to run the backquoted code through gofmt. R=rsc, ken2, ken3 CC=golang-dev https://golang.org/cl/879041 |
||
---|---|---|
.. | ||
doc.go | ||
goyacc.go | ||
Makefile | ||
units.txt | ||
units.y |