parser.leg.go: in actions, sort local variable names

This commit is contained in:
Michael Teichgräber 2014-07-31 00:26:58 +02:00
parent 4d085742f2
commit d8d44deb74

View File

@ -474,20 +474,20 @@ func (p *yyParser) Init() {
}, },
/* 6 AtxHeading */ /* 6 AtxHeading */
func(yytext string, _ int) { func(yytext string, _ int) {
s := yyval[yyp-1] a := yyval[yyp-1]
a := yyval[yyp-2] s := yyval[yyp-2]
a = cons(yy, a) a = cons(yy, a)
yyval[yyp-1] = s yyval[yyp-1] = a
yyval[yyp-2] = a yyval[yyp-2] = s
}, },
/* 7 AtxHeading */ /* 7 AtxHeading */
func(yytext string, _ int) { func(yytext string, _ int) {
s := yyval[yyp-1] a := yyval[yyp-1]
a := yyval[yyp-2] s := yyval[yyp-2]
yy = p.mkList(s.key, a) yy = p.mkList(s.key, a)
s = nil s = nil
yyval[yyp-1] = s yyval[yyp-1] = a
yyval[yyp-2] = a yyval[yyp-2] = s
}, },
/* 8 SetextHeading1 */ /* 8 SetextHeading1 */
func(yytext string, _ int) { func(yytext string, _ int) {
@ -1137,29 +1137,29 @@ func (p *yyParser) Init() {
}, },
/* 101 Note */ /* 101 Note */
func(yytext string, _ int) { func(yytext string, _ int) {
ref := yyval[yyp-1] a := yyval[yyp-1]
a := yyval[yyp-2] ref := yyval[yyp-2]
a = cons(yy, a) a = cons(yy, a)
yyval[yyp-1] = ref yyval[yyp-1] = a
yyval[yyp-2] = a yyval[yyp-2] = ref
}, },
/* 102 Note */ /* 102 Note */
func(yytext string, _ int) { func(yytext string, _ int) {
ref := yyval[yyp-1] a := yyval[yyp-1]
a := yyval[yyp-2] ref := yyval[yyp-2]
a = cons(yy, a) a = cons(yy, a)
yyval[yyp-1] = ref yyval[yyp-1] = a
yyval[yyp-2] = a yyval[yyp-2] = ref
}, },
/* 103 Note */ /* 103 Note */
func(yytext string, _ int) { func(yytext string, _ int) {
ref := yyval[yyp-1] a := yyval[yyp-1]
a := yyval[yyp-2] ref := yyval[yyp-2]
yy = p.mkList(NOTE, a) yy = p.mkList(NOTE, a)
yy.contents.str = ref.contents.str yy.contents.str = ref.contents.str
yyval[yyp-1] = ref yyval[yyp-1] = a
yyval[yyp-2] = a yyval[yyp-2] = ref
}, },
/* 104 InlineNote */ /* 104 InlineNote */
func(yytext string, _ int) { func(yytext string, _ int) {
@ -1665,14 +1665,14 @@ func (p *yyParser) Init() {
if !p.rules[ruleAtxStart]() { if !p.rules[ruleAtxStart]() {
goto ko goto ko
} }
doarg(yySet, -1) doarg(yySet, -2)
if !p.rules[ruleSp]() { if !p.rules[ruleSp]() {
goto ko goto ko
} }
if !p.rules[ruleStartList]() { if !p.rules[ruleStartList]() {
goto ko goto ko
} }
doarg(yySet, -2) doarg(yySet, -1)
if !p.rules[ruleAtxInline]() { if !p.rules[ruleAtxInline]() {
goto ko goto ko
} }
@ -12146,7 +12146,7 @@ func (p *yyParser) Init() {
if !p.rules[ruleRawNoteReference]() { if !p.rules[ruleRawNoteReference]() {
goto ko goto ko
} }
doarg(yySet, -1) doarg(yySet, -2)
if !matchChar(':') { if !matchChar(':') {
goto ko goto ko
} }
@ -12156,7 +12156,7 @@ func (p *yyParser) Init() {
if !p.rules[ruleStartList]() { if !p.rules[ruleStartList]() {
goto ko goto ko
} }
doarg(yySet, -2) doarg(yySet, -1)
if !p.rules[ruleRawNoteBlock]() { if !p.rules[ruleRawNoteBlock]() {
goto ko goto ko
} }