]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/yacc: move cmd/yacc/expr to cmd/yacc/testdata/expr
authorRuss Cox <rsc@golang.org>
Sat, 6 Sep 2014 19:27:52 +0000 (15:27 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 6 Sep 2014 19:27:52 +0000 (15:27 -0400)
This will keep the go command from trying to build it
when the cmd/ tree is no longer a special case.

Also update doc.go to refer to the correct location.
(It was incorrect even before this CL.)

LGTM=r
R=iant, r
CC=golang-codereviews
https://golang.org/cl/134560043

src/cmd/yacc/doc.go
src/cmd/yacc/testdata/expr/README [moved from src/cmd/yacc/expr/README with 100% similarity]
src/cmd/yacc/testdata/expr/expr.y [moved from src/cmd/yacc/expr/expr.y with 100% similarity]
src/cmd/yacc/testdata/expr/main.go [moved from src/cmd/yacc/expr/main.go with 100% similarity]

index ceaaf2448daee0c289f5039e94d42a56787e60e8..702c9f0d25aa98fdaf8c3aff801246cd80af6813 100644 (file)
@@ -20,8 +20,9 @@ written in C and documented at
 Adepts of the original yacc will have no trouble adapting to this
 form of the tool.
 
-The file expr.y in this directory is a yacc grammar for a very simple
-expression parser.  It needs the flag "-p expr" (see below).
+The directory $GOROOT/cmd/yacc/testdata/expr is a yacc program
+for a very simple expression parser. See expr.y and main.go in that
+directory for examples of how to write and build yacc programs.
 
 The generated parser is reentrant. Parse expects to be given an
 argument that conforms to the following interface: