Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(993)

Unified Diff: src/cmd/goyacc/goyacc.go

Issue 1863042: code review 1863042: interpret lines that look like (Closed)
Patch Set: code review 1863042: interpret lines that look like Created 14 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/gc/subr.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/goyacc/goyacc.go
===================================================================
--- a/src/cmd/goyacc/goyacc.go
+++ b/src/cmd/goyacc/goyacc.go
@@ -675,7 +675,7 @@
//
if t == MARK {
if !lflag {
- fmt.Fprintf(ftable, "\n//line %v:%v\n", infile, lineno)
+ fmt.Fprintf(ftable, "\n//line %v %v\n", lineno, infile)
}
for {
c := getrune(finput)
@@ -2066,6 +2066,7 @@
func output() {
var c, u, v int
+ fmt.Fprintf(ftable, "\n//line 1 yacctab\n")
fmt.Fprintf(ftable, "var\tyyExca = []int {\n")
noset := mkset()
@@ -2825,8 +2826,10 @@
c = getrune(finput)
}
+ // copy yaccpar
+ fmt.Fprintf(ftable, "\n//line 1 yaccpar\n")
+
parts := strings.Split(yaccpar, "yyrun()", 2)
- // copy yaccpar
fmt.Fprintf(ftable, "%v", parts[0])
ftable.Write(fcode.Bytes())
fmt.Fprintf(ftable, "%v", parts[1])
« no previous file with comments | « src/cmd/gc/subr.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b