mirror of
https://github.com/golang/go
synced 2024-11-22 04:34:39 -07:00
cmd/gc: make bisonerrors compatible with GNU Bison 3.0
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/11990043
This commit is contained in:
parent
fc32bfa9cc
commit
4eaf91a7a7
@ -35,6 +35,9 @@ grammar && NF>0 {
|
||||
}
|
||||
rulelhs[$1] = r
|
||||
rulesize[$1] = NF-2
|
||||
if(rulesize[$1] == 1 && $3 == "%empty") {
|
||||
rulesize[$1] = 0
|
||||
}
|
||||
if(rulesize[$1] == 3 && $3 $4 $5 == "/*empty*/") {
|
||||
rulesize[$1] = 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user