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

Issue 194085: code review 194085: gc: improved syntax errors (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 2 months ago by rsc
Modified:
15 years, 2 months ago
Reviewers:
CC:
ken2, r, ken3, golang-dev
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : code review 194085: gc: improved syntax errors #

Total comments: 3

Patch Set 3 : code review 194085: gc: improved syntax errors #

Patch Set 4 : code review 194085: gc: improved syntax errors #

Patch Set 5 : code review 194085: gc: improved syntax errors #

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

Messages

Total messages: 9
rsc
Hello ken2, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 2 months ago (2010-01-26 19:42:23 UTC) #1
ken3
LGTM On 2010/01/26 19:42:23, rsc wrote: > Hello ken2, r (cc: mailto:golang-dev@googlegroups.com), > > I'd ...
15 years, 2 months ago (2010-01-26 22:59:06 UTC) #2
r
http://codereview.appspot.com/194085/diff/1001/1004 File src/cmd/gc/go.errors (right): http://codereview.appspot.com/194085/diff/1001/1004#newcode45 src/cmd/gc/go.errors:45: "lower bound of slice expression is required", i've never ...
15 years, 2 months ago (2010-01-27 02:12:19 UTC) #3
rsc
> src/cmd/gc/lex.c:1520: "LDEC", "`--'", > why are there backquotes? they are not left quotes, and ...
15 years, 2 months ago (2010-01-27 02:15:55 UTC) #4
r2
On Jan 27, 2010, at 1:15 PM, Russ Cox wrote: >> src/cmd/gc/lex.c:1520: "LDEC", "`--'", >> ...
15 years, 2 months ago (2010-01-27 02:17:30 UTC) #5
rsc
done (no quotes)
15 years, 2 months ago (2010-01-27 04:42:59 UTC) #6
rsc
Hello ken2, r, ken3 (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 2 months ago (2010-01-27 04:43:29 UTC) #7
r
LGTM
15 years, 2 months ago (2010-01-27 04:51:50 UTC) #8
rsc
15 years, 2 months ago (2010-01-27 07:13:29 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=7427b07b5042 ***

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

R=ken2, r, ken3
CC=golang-dev
http://codereview.appspot.com/194085
Sign in to reply to this message.

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