github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/cmd/goyacc/testdata/expr/README (about)

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