]> Cypherpunks repositories - gostls13.git/commit
cmd/yacc: fix handling of tokens that don't start with letters
authorIan Lance Taylor <iant@golang.org>
Mon, 29 Sep 2014 20:32:14 +0000 (13:32 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 29 Sep 2014 20:32:14 +0000 (13:32 -0700)
commitfe2bc11e1fac672cc23e9ffd01673257a1330707
treeefea1c199f3ec305ca94db469bbe29d8320eb0bf
parent1cfa5958f0ab841bd00fcc0d674bfec87e2055bd
cmd/yacc: fix handling of tokens that don't start with letters

CL 149110043 changed yacc to no longer keep a leading space
for quoted tokens.  That is OK by itself but unfortunately
yacc was relying on that leading space to notice which tokens
it should not output as const declarations.

Add a few such tokens to expr.y, although it won't make any
immediate difference as we seem to have no tests for yacc.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/152720043
src/cmd/yacc/testdata/expr/expr.y
src/cmd/yacc/yacc.go