...

Text file src/golang.org/x/tools/cmd/goyacc/testdata/expr/README

Documentation: golang.org/x/tools/cmd/goyacc/testdata/expr

     1This directory contains a simple program demonstrating how to use
     2the Go version of yacc.
     3
     4To build it:
     5
     6	$ go generate
     7	$ go build
     8
     9or
    10
    11	$ go generate
    12	$ go run expr.go
    13
    14The file main.go contains the "go generate" command to run yacc to
    15create expr.go from expr.y. It also has the package doc comment,
    16as godoc will not scan the .y file.
    17
    18The actual implementation is in expr.y.
    19
    20The program is not installed in the binary distributions of Go.

View as plain text