diff options
author | Tianon Gravi <admwiggin@gmail.com> | 2015-01-15 11:54:00 -0700 |
---|---|---|
committer | Tianon Gravi <admwiggin@gmail.com> | 2015-01-15 11:54:00 -0700 |
commit | f154da9e12608589e8d5f0508f908a0c3e88a1bb (patch) | |
tree | f8255d51e10c6f1e0ed69702200b966c9556a431 /src/cmd/yacc/doc.go | |
parent | 8d8329ed5dfb9622c82a9fbec6fd99a580f9c9f6 (diff) | |
download | golang-upstream/1.4.tar.gz |
Imported Upstream version 1.4upstream/1.4
Diffstat (limited to 'src/cmd/yacc/doc.go')
-rw-r--r-- | src/cmd/yacc/doc.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/yacc/doc.go b/src/cmd/yacc/doc.go index ceaaf2448..702c9f0d2 100644 --- a/src/cmd/yacc/doc.go +++ b/src/cmd/yacc/doc.go @@ -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: |