• Roger Peppe's avatar
    Change goyacc to be reentrant. · 6c3befc8
    Roger Peppe authored
    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
    6c3befc8
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
cc Loading commit data...
cgo Loading commit data...
cov Loading commit data...
ebnflint Loading commit data...
gc Loading commit data...
godefs Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
goinstall Loading commit data...
gopack Loading commit data...
gotest Loading commit data...
goyacc Loading commit data...
hgpatch Loading commit data...
ld Loading commit data...
nm Loading commit data...
prof Loading commit data...
clean.bash Loading commit data...
make.bash Loading commit data...