1
0
mirror of https://github.com/golang/go synced 2024-10-04 11:11:21 -06:00
go/src/cmd/goyacc
Roger Peppe 6c3befc824 Change goyacc to be reentrant.
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
2010-04-06 13:29:27 -07:00
..
doc.go Change goyacc to be reentrant. 2010-04-06 13:29:27 -07:00
goyacc.go Change goyacc to be reentrant. 2010-04-06 13:29:27 -07:00
Makefile go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00
units.txt minor changes 2009-09-10 17:32:48 -07:00
units.y Change goyacc to be reentrant. 2010-04-06 13:29:27 -07:00