|
gc: improved syntax errors
* example-based syntax errors (go.errors)
* enable bison's more specific errors
and translate grammar token names into
tokens like ++
* test cases
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+455 lines, -13 lines) |
Patch |
 |
M |
src/cmd/gc/Makefile
|
View
|
1
2
|
3 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
 |
A |
src/cmd/gc/bisonerrors
|
View
|
1
|
1 chunk |
+124 lines, -0 lines |
0 comments
|
Download
|
 |
A |
src/cmd/gc/go.errors
|
View
|
1
2
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/go.y
|
View
|
1
2
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/lex.c
|
View
|
2
3
|
3 chunks |
+84 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/subr.c
|
View
|
1
|
2 chunks |
+36 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/golden.out
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
test/run
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
test/syntax/forvar.go
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/import.go
|
View
|
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/interface.go
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/semi1.go
|
View
|
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/semi2.go
|
View
|
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/semi3.go
|
View
|
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/semi4.go
|
View
|
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/semi5.go
|
View
|
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/semi6.go
|
View
|
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/semi7.go
|
View
|
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/syntax/slice.go
|
View
|
2
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 9
|