Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
expr.y | 06-Dec-2016 | 3.2K | |
main.go | 06-Dec-2016 | 510 | |
README | 06-Dec-2016 | 445 |
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. 21