diff --git a/cmd/goyacc/yacc.go b/cmd/goyacc/yacc.go index 5e77e2f5e6..92764014c5 100644 --- a/cmd/goyacc/yacc.go +++ b/cmd/goyacc/yacc.go @@ -387,7 +387,7 @@ func setup() { yaccpar = strings.Replace(yaccpartext, "$$", prefix, -1) openup() - fmt.Fprintf(ftable, "// Code generated by goyacc. DO NOT EDIT.") + fmt.Fprintf(ftable, "// Code generated by goyacc %s. DO NOT EDIT.", strings.Join(os.Args[1:], " ")) defin(0, "$end") extval = PRIVATE // tokens start in unicode 'private use'