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

Issue 1678042: Be "smarter" when injecting ';' into the parser's input...

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by pwil3058
Modified:
5 years ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

Be "smarter" when injecting ';' into the parser's input stream in order to avoid unnecessary restrictions on source code format. In order to more accurately implement the apparent desire in the description of ';' injection that ';' are only optional at the end of statements the injection of ';' for newlines in "for", "if" and "switch" statements may be disallowed. Patch set 1 disallows them and patch set 2 allows them.

Patch Set 1 #

Patch Set 2 : code review 1678042: Be "smarter" when injecting ';' into the parser's input... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -101 lines) Patch
M doc/go_spec.html View 1 chunk +2 lines, -3 lines 0 comments Download
M src/cmd/gc/go.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/cmd/gc/lex.c View 1 7 chunks +139 lines, -6 lines 0 comments Download
M src/pkg/go/scanner/scanner.go View 1 7 chunks +100 lines, -3 lines 0 comments Download
M test/arm-pass.txt View 1 chunk +6 lines, -6 lines 0 comments Download
A test/syntax/ffelse.go View 1 chunk +22 lines, -0 lines 0 comments Download
A test/syntax/fffor.go View 1 chunk +30 lines, -0 lines 0 comments Download
A test/syntax/fffunc.go View 1 chunk +39 lines, -0 lines 0 comments Download
A test/syntax/fffuncstruct.go View 1 chunk +30 lines, -0 lines 0 comments Download
A test/syntax/ffif.go View 1 chunk +14 lines, -0 lines 0 comments Download
A test/syntax/ffimport.go View 1 1 chunk +20 lines, -0 lines 0 comments Download
A test/syntax/forsemi.go View 1 1 chunk +18 lines, -0 lines 0 comments Download
R test/syntax/semi1.go View 1 chunk +0 lines, -14 lines 0 comments Download
R test/syntax/semi2.go View 1 chunk +0 lines, -14 lines 0 comments Download
R test/syntax/semi3.go View 1 chunk +0 lines, -14 lines 0 comments Download
R test/syntax/semi4.go View 1 chunk +0 lines, -14 lines 0 comments Download
R test/syntax/semi5.go View 1 chunk +0 lines, -13 lines 0 comments Download
R test/syntax/semi7.go View 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 21
pwil3058
Two patch sets have been uploaded. They are identical except that the first disallows ';' ...
13 years, 10 months ago (2010-06-17 05:57:21 UTC) #1
pwil3058
The test/syntax/ff*.go files added by this patch will need to be modified in order to ...
13 years, 10 months ago (2010-06-20 02:04:29 UTC) #2
rsc1
13 years, 10 months ago (2010-06-23 02:44:11 UTC) #3
rsc
Regarding the code: We tried various context-sensitive semicolon elision before the public release of Go, ...
13 years, 10 months ago (2010-06-23 02:55:28 UTC) #4
pwil3058
On 23/06/10 12:55, Russ Cox wrote: > Regarding the code: > > We tried various ...
13 years, 10 months ago (2010-06-23 05:23:23 UTC) #5
iant2
Peter Williams <pwil3058@gmail.com> writes: > The current wording does NOT read as a specification. It ...
13 years, 10 months ago (2010-06-23 06:38:20 UTC) #6
pwil3058
On 23/06/10 16:37, Ian Lance Taylor wrote: > Peter Williams<pwil3058@gmail.com> writes: > >> The current ...
13 years, 10 months ago (2010-06-23 06:52:56 UTC) #7
iant2
Peter Williams <pwil3058@gmail.com> writes: > On 23/06/10 16:37, Ian Lance Taylor wrote: >> Peter Williams<pwil3058@gmail.com> ...
13 years, 10 months ago (2010-06-23 14:06:56 UTC) #8
rsc
> The changes it makes are: > > 1. Allow new lines in top level ...
13 years, 10 months ago (2010-06-23 22:28:13 UTC) #9
pwil3058
On 24/06/10 08:28, Russ Cox wrote: >> The changes it makes are: >> >> 1. ...
13 years, 10 months ago (2010-06-24 00:08:17 UTC) #10
pwil3058
On 24/06/10 00:06, Ian Lance Taylor wrote: > Peter Williams<pwil3058@gmail.com> writes: >> PS It worries ...
13 years, 10 months ago (2010-06-24 00:21:14 UTC) #11
iant2
Peter Williams <pwil3058@gmail.com> writes: > On 24/06/10 00:06, Ian Lance Taylor wrote: >> Peter Williams<pwil3058@gmail.com> ...
13 years, 10 months ago (2010-06-24 04:36:42 UTC) #12
rsc
> The reason it won't be taken seriously are not that statement but its > ...
13 years, 10 months ago (2010-06-24 17:24:07 UTC) #13
pwil3058
On 24/06/10 14:36, Ian Lance Taylor wrote: > Peter Williams<pwil3058@gmail.com> writes: > >> On 24/06/10 ...
13 years, 10 months ago (2010-06-25 01:46:23 UTC) #14
pwil3058
On 25/06/10 03:24, Russ Cox wrote: >> The reason it won't be taken seriously are ...
13 years, 10 months ago (2010-06-25 02:05:36 UTC) #15
iant2
Peter Williams <pwil3058@gmail.com> writes: > On 24/06/10 14:36, Ian Lance Taylor wrote: >> Peter Williams<pwil3058@gmail.com> ...
13 years, 10 months ago (2010-06-25 05:06:50 UTC) #16
pwil3058
On 25/06/10 15:06, Ian Lance Taylor wrote: > Peter Williams<pwil3058@gmail.com> writes: > >> On 24/06/10 ...
13 years, 10 months ago (2010-06-25 05:33:27 UTC) #17
rsc
>> You may disagree with them, but I don't think you can argue >> that ...
13 years, 10 months ago (2010-06-25 14:14:55 UTC) #18
pwil3058
On 25/06/10 12:05, Peter Williams wrote: > On 25/06/10 03:24, Russ Cox wrote: >>> The ...
13 years, 10 months ago (2010-06-26 00:20:25 UTC) #19
pwil3058
On 26/06/10 00:14, Russ Cox wrote: >>> You may disagree with them, but I don't ...
13 years, 10 months ago (2010-06-26 00:42:59 UTC) #20
rsc1
13 years, 8 months ago (2010-08-03 20:08:06 UTC) #21
removing reviewers; timed out
Sign in to reply to this message.

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