Commit 4eaf91a7 authored by Rémy Oudompheng's avatar Rémy Oudompheng

cmd/gc: make bisonerrors compatible with GNU Bison 3.0

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/11990043
parent fc32bfa9
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment