]>
Cypherpunks repositories - gostls13.git/log
Rob Pike [Fri, 13 Mar 2009 00:08:47 +0000 (17:08 -0700)]
fix language regarding type of numeric literals
R=rsc
DELTA=4 (0 added, 2 deleted, 2 changed)
OCL=26208
CL=26212
Rob Pike [Thu, 12 Mar 2009 22:53:56 +0000 (15:53 -0700)]
what is the name for "&^". let's go with bit clear (and not)
R=rsc
DELTA=14 (0 added, 0 deleted, 14 changed)
OCL=26159
CL=26206
Robert Griesemer [Thu, 12 Mar 2009 18:04:11 +0000 (11:04 -0700)]
- remove special handling of '\n' characters (used to be treated as comments
for pretty printer purposes - now properly ignored as white space since we
have line/col information)
- changed sample use in comment to an actually compiled function to make sure
sample is actually working
- added extra tests (checking line and column values, and the tokenize function)
R=rsc
DELTA=253 (61 added, 67 deleted, 125 changed)
OCL=26143
CL=26181
Rob Pike [Thu, 12 Mar 2009 05:02:18 +0000 (22:02 -0700)]
fix unqouted &
R=gri
OCL=26158
CL=26158
Rob Pike [Thu, 12 Mar 2009 04:59:05 +0000 (21:59 -0700)]
bit clear: &^ and &^=
R=gri
DELTA=5 (3 added, 0 deleted, 2 changed)
OCL=26155
CL=26157
Ken Thompson [Thu, 12 Mar 2009 02:59:35 +0000 (19:59 -0700)]
added bitclear operators &^ and &^=
R=r
OCL=26152
CL=26152
Ken Thompson [Thu, 12 Mar 2009 00:37:04 +0000 (17:37 -0700)]
bug 125
R=r
OCL=26146
CL=26146
Ken Thompson [Wed, 11 Mar 2009 23:25:45 +0000 (16:25 -0700)]
bug 137
R=r
OCL=26142
CL=26142
Russ Cox [Wed, 11 Mar 2009 23:06:17 +0000 (16:06 -0700)]
complain when trying to put T into an interface
if T has pointer methods. this is just a heuristic
but it catches the problem robert ran into and
lets me put the larger interface issues aside for
now. found one bug in pretty.
R=ken
OCL=26141
CL=26141
Robert Griesemer [Wed, 11 Mar 2009 19:52:11 +0000 (12:52 -0700)]
- update pretty sources to match new scanner interface
R=r
OCL=26129
CL=26131
Russ Cox [Wed, 11 Mar 2009 19:51:10 +0000 (12:51 -0700)]
Rename os.FD to os.File.
Make Fstat, Readdirnames, and Readdir methods
on os.File.
R=r
DELTA=281 (79 added, 3 deleted, 199 changed)
OCL=25891
CL=26130
Russ Cox [Wed, 11 Mar 2009 19:50:58 +0000 (12:50 -0700)]
document json
R=r
DELTA=115 (102 added, 0 deleted, 13 changed)
OCL=25953
CL=26128
Robert Griesemer [Wed, 11 Mar 2009 19:48:45 +0000 (12:48 -0700)]
- scanner to track line/col number instead of byte position only
- fixed a parameter name in tabwriter
R=rsc
DELTA=110 (21 added, 17 deleted, 72 changed)
OCL=26123
CL=26127
Russ Cox [Wed, 11 Mar 2009 19:45:53 +0000 (12:45 -0700)]
document http
R=r
DELTA=84 (63 added, 4 deleted, 17 changed)
OCL=25950
CL=26126
Rob Pike [Wed, 11 Mar 2009 03:47:42 +0000 (20:47 -0700)]
fix old-style print call in constant
R=rsc
OCL=26093
CL=26093
Ian Lance Taylor [Wed, 11 Mar 2009 03:03:31 +0000 (20:03 -0700)]
Add support for a -I option. -I DIR searches for packages in
DIR.
R=ken,rsc
DELTA=49 (41 added, 2 deleted, 6 changed)
OCL=26057
CL=26092
Ken Thompson [Wed, 11 Mar 2009 02:16:31 +0000 (19:16 -0700)]
bug086
R=r
OCL=26090
CL=26090
Robert Griesemer [Wed, 11 Mar 2009 01:20:08 +0000 (18:20 -0700)]
snapshot of today
(little progress with interface printing, but now shows a
list of exported function names)
R=r
OCL=26082
CL=26082
Robert Griesemer [Wed, 11 Mar 2009 01:09:13 +0000 (18:09 -0700)]
- fixing (internal) capitalization
R=rsc
DELTA=7 (0 added, 0 deleted, 7 changed)
OCL=26080
CL=26080
Robert Griesemer [Wed, 11 Mar 2009 00:08:05 +0000 (17:08 -0700)]
- allow unicode digits in identifiers
- fixed a bug with character escapes (before: allowed arbitrary long sequences)
R=r
DELTA=63 (33 added, 19 deleted, 11 changed)
OCL=26010
CL=26070
Ken Thompson [Tue, 10 Mar 2009 23:49:34 +0000 (16:49 -0700)]
bug with interaction of variables
declared in cases and heap allocation
R=r
OCL=26064
CL=26064
Robert Griesemer [Tue, 10 Mar 2009 23:39:23 +0000 (16:39 -0700)]
constant conversion of int (non-ideal) constant doesn't work
R=rsc
DELTA=20 (20 added, 0 deleted, 0 changed)
OCL=26054
CL=26062
Robert Griesemer [Tue, 10 Mar 2009 23:31:19 +0000 (16:31 -0700)]
- adjustments due to changed tabwriter interface
- more comments in parser
R=r
OCL=26060
CL=26060
Rob Pike [Tue, 10 Mar 2009 23:30:27 +0000 (16:30 -0700)]
add unicode data for decimal digit, preparatory to allowing them in identifiers.
R=rsc
DELTA=431 (430 added, 0 deleted, 1 changed)
OCL=25975
CL=26059
Robert Griesemer [Tue, 10 Mar 2009 23:30:26 +0000 (16:30 -0700)]
- incorporate suggestions from previous code review
R=rsc
DELTA=64 (18 added, 3 deleted, 43 changed)
OCL=26046
CL=26058
Robert Griesemer [Tue, 10 Mar 2009 21:55:04 +0000 (14:55 -0700)]
tabwriter documentation
R=rsc
DELTA=62 (31 added, 5 deleted, 26 changed)
OCL=26022
CL=26040
Rob Pike [Tue, 10 Mar 2009 05:35:06 +0000 (22:35 -0700)]
conversions are mostly cleaned up; bring the spec in line.
R=gri
DELTA=31 (12 added, 18 deleted, 1 changed)
OCL=25974
CL=25976
Robert Griesemer [Tue, 10 Mar 2009 01:53:11 +0000 (18:53 -0700)]
- more documentation adjustments
R=rsc
DELTA=6 (0 added, 1 deleted, 5 changed)
OCL=25970
CL=25973
Rob Pike [Tue, 10 Mar 2009 01:00:41 +0000 (18:00 -0700)]
delete float80 from libraries
R=rsc
DELTA=40 (0 added, 38 deleted, 2 changed)
OCL=25969
CL=25969
Rob Pike [Tue, 10 Mar 2009 00:47:15 +0000 (17:47 -0700)]
document reflect.
R=rsc
DELTA=201 (90 added, 0 deleted, 111 changed)
OCL=25904
CL=25966
Robert Griesemer [Tue, 10 Mar 2009 00:30:38 +0000 (17:30 -0700)]
Fixing comment.
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=25956
CL=25960
Robert Griesemer [Tue, 10 Mar 2009 00:16:42 +0000 (17:16 -0700)]
scanner.go documentation
R=r
DELTA=22 (8 added, 3 deleted, 11 changed)
OCL=25947
CL=25955
Robert Griesemer [Tue, 10 Mar 2009 00:13:15 +0000 (17:13 -0700)]
token.go documentation
R=r
DELTA=34 (24 added, 2 deleted, 8 changed)
OCL=25946
CL=25954
Robert Griesemer [Mon, 9 Mar 2009 19:41:53 +0000 (12:41 -0700)]
- directory rename lang -> go
R=rsc
DELTA=2070 (1035 added, 1035 deleted, 0 changed)
OCL=25939
CL=25939
Ken Thompson [Sun, 8 Mar 2009 01:33:42 +0000 (17:33 -0800)]
binary search for constant case statements.
R=r
OCL=25890
CL=25890
Rob Pike [Sun, 8 Mar 2009 00:57:01 +0000 (16:57 -0800)]
document bufio
R=rsc
DELTA=61 (27 added, 2 deleted, 32 changed)
OCL=25877
CL=25889
Rob Pike [Sun, 8 Mar 2009 00:56:44 +0000 (16:56 -0800)]
document os
R=rsc
DELTA=143 (96 added, 0 deleted, 47 changed)
OCL=25876
CL=25888
Rob Pike [Sun, 8 Mar 2009 00:56:21 +0000 (16:56 -0800)]
document hash
R=rsc
DELTA=50 (33 added, 4 deleted, 13 changed)
OCL=25878
CL=25887
Rob Pike [Sun, 8 Mar 2009 00:56:05 +0000 (16:56 -0800)]
document time
R=rsc
DELTA=42 (23 added, 1 deleted, 18 changed)
OCL=25881
CL=25886
Russ Cox [Sat, 7 Mar 2009 01:51:31 +0000 (17:51 -0800)]
document Conn interface better, in preparation
for per-method interface documentation
by mkdoc.pl.
implement timeouts on network reads
and use them in dns client.
also added locks on i/o to ensure writes
are not interlaced.
R=r
DELTA=340 (272 added, 25 deleted, 43 changed)
OCL=25799
CL=25874
Ken Thompson [Sat, 7 Mar 2009 01:50:43 +0000 (17:50 -0800)]
1. type switches
2. fixed fault on bug128
3. got rid of typeof
4. fixed bug in t,ok = I2T
R=r
OCL=25873
CL=25873
Rob Pike [Sat, 7 Mar 2009 01:29:25 +0000 (17:29 -0800)]
document sort
R=rsc
DELTA=20 (20 added, 0 deleted, 0 changed)
OCL=25869
CL=25872
Rob Pike [Sat, 7 Mar 2009 01:20:53 +0000 (17:20 -0800)]
document syscall. all we do is redirect elsewhere.
R=rsc
DELTA=7 (7 added, 0 deleted, 0 changed)
OCL=25859
CL=25871
Robert Griesemer [Sat, 7 Mar 2009 00:54:26 +0000 (16:54 -0800)]
weekend snapshot
- fixed a minor bug
- some initial code to extract interface of a package
R=r
OCL=25866
CL=25866
Robert Griesemer [Sat, 7 Mar 2009 00:11:40 +0000 (16:11 -0800)]
- wrote simple template substitution package
- use template in pretty printing now instead of hand-coded mechanism
R=r
OCL=25863
CL=25863
Rob Pike [Sat, 7 Mar 2009 00:03:59 +0000 (16:03 -0800)]
delete vestigial references to package syscall
R=rsc
DELTA=8 (0 added, 5 deleted, 3 changed)
OCL=25857
CL=25861
Rob Pike [Fri, 6 Mar 2009 11:43:44 +0000 (03:43 -0800)]
document io
R=rsc
DELTA=44 (30 added, 4 deleted, 10 changed)
OCL=25819
CL=25835
Rob Pike [Fri, 6 Mar 2009 11:36:50 +0000 (03:36 -0800)]
document once
R=rsc
DELTA=14 (7 added, 5 deleted, 2 changed)
OCL=25818
CL=25834
Rob Pike [Fri, 6 Mar 2009 11:35:38 +0000 (03:35 -0800)]
document fmt.
the description of the format verbs still needs to be done.
R=rsc
DELTA=288 (88 added, 12 deleted, 188 changed)
OCL=25814
CL=25833
Rob Pike [Fri, 6 Mar 2009 11:22:02 +0000 (03:22 -0800)]
document unicode, such as it is
R=rsc
DELTA=18 (9 added, 0 deleted, 9 changed)
OCL=25817
CL=25832
Rob Pike [Fri, 6 Mar 2009 03:26:27 +0000 (19:26 -0800)]
document rand
R=rsc
DELTA=27 (16 added, 8 deleted, 3 changed)
OCL=25804
CL=25813
Rob Pike [Fri, 6 Mar 2009 03:22:06 +0000 (19:22 -0800)]
document container/intvector
R=rsc
DELTA=15 (15 added, 0 deleted, 0 changed)
OCL=25794
CL=25812
Rob Pike [Fri, 6 Mar 2009 03:15:13 +0000 (19:15 -0800)]
document utf8
R=rsc
DELTA=18 (12 added, 0 deleted, 6 changed)
OCL=25807
CL=25811
Robert Griesemer [Fri, 6 Mar 2009 02:44:21 +0000 (18:44 -0800)]
- using doc template for gds now
- no interface extraction yet
R=r
OCL=25808
CL=25808
Russ Cox [Fri, 6 Mar 2009 02:26:12 +0000 (18:26 -0800)]
new approach for generating sysimport.c
(renamed to avoid any conflict with old p4 copies).
this approach doesn't require auto-generating
files also kept in p4, so it should be easier on
go users who don't sync very often.
this approach will be more work for go developers:
builtin.c needs to be copied to builtin.c.boot in p4
as new functions are added. mkbuiltin does this
for certain $USERs to help us remember.
R=r
DELTA=343 (176 added, 162 deleted, 5 changed)
OCL=25803
CL=25805
Rob Pike [Fri, 6 Mar 2009 01:50:36 +0000 (17:50 -0800)]
document testing and incidentally gotest
R=rsc
DELTA=25 (25 added, 0 deleted, 0 changed)
OCL=25798
CL=25802
Robert Griesemer [Fri, 6 Mar 2009 01:15:36 +0000 (17:15 -0800)]
Lots of cleanups in prep. for checking in parser and ast into lib:
- removed any symbol table stuff
- some interface cleanup
- removed lot's of dead wood
- half the support for type switches (simple form)
- name capitalization
Several rounds to come.
R=r
OCL=25797
CL=25797
Rob Pike [Fri, 6 Mar 2009 01:02:34 +0000 (17:02 -0800)]
document strings
R=rsc
DELTA=9 (4 added, 0 deleted, 5 changed)
OCL=25793
CL=25795
Russ Cox [Thu, 5 Mar 2009 23:57:03 +0000 (15:57 -0800)]
bug085 bug129
R=ken
OCL=25787
CL=25791
Ken Thompson [Thu, 5 Mar 2009 23:49:34 +0000 (15:49 -0800)]
new switch implementation
in preparation of type switch.
no functional change (yet).
R=r
OCL=25784
CL=25788
Russ Cox [Thu, 5 Mar 2009 23:48:12 +0000 (15:48 -0800)]
net: doc, doc-inspired cleanup
R=r
DELTA=368 (87 added, 14 deleted, 267 changed)
OCL=25773
CL=25786
Russ Cox [Thu, 5 Mar 2009 23:29:04 +0000 (15:29 -0800)]
strconv: doc
R=r
DELTA=110 (64 added, 19 deleted, 27 changed)
OCL=25761
CL=25782
Robert Griesemer [Thu, 5 Mar 2009 23:01:54 +0000 (15:01 -0800)]
revert QualifiedIdent to old production
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25732
CL=25777
Russ Cox [Thu, 5 Mar 2009 21:35:45 +0000 (13:35 -0800)]
misc doc
R=r
DELTA=50 (28 added, 0 deleted, 22 changed)
OCL=25763
CL=25770
Rob Pike [Thu, 5 Mar 2009 21:31:03 +0000 (13:31 -0800)]
delete deprecated files.
deletion beats documentation for deprecation.
R=rsc,gri
DELTA=509 (2 added, 490 deleted, 17 changed)
OCL=25737
CL=25768
Russ Cox [Thu, 5 Mar 2009 21:31:01 +0000 (13:31 -0800)]
math: doc
R=r
DELTA=173 (74 added, 14 deleted, 85 changed)
OCL=25753
CL=25767
Rob Pike [Thu, 5 Mar 2009 21:30:39 +0000 (13:30 -0800)]
document vector
R=rsc
DELTA=36 (30 added, 0 deleted, 6 changed)
OCL=25740
CL=25766
Rob Pike [Thu, 5 Mar 2009 06:46:44 +0000 (22:46 -0800)]
log: document
R=rsc
DELTA=26 (17 added, 1 deleted, 8 changed)
OCL=25731
CL=25734
Rob Pike [Thu, 5 Mar 2009 06:43:51 +0000 (22:43 -0800)]
flag: document
also write to stderr not stdout
R=rsc
DELTA=48 (38 added, 2 deleted, 8 changed)
OCL=25729
CL=25733
Rob Pike [Thu, 5 Mar 2009 06:03:35 +0000 (22:03 -0800)]
delete bogus vestige
R=rsc
OCL=25730
CL=25730
Rob Pike [Thu, 5 Mar 2009 05:41:12 +0000 (21:41 -0800)]
typos
R=gri
DELTA=3 (0 added, 1 deleted, 2 changed)
OCL=25728
CL=25728
Russ Cox [Thu, 5 Mar 2009 05:30:07 +0000 (21:30 -0800)]
sync: add documentation
R=r
DELTA=63 (57 added, 1 deleted, 5 changed)
OCL=25727
CL=25727
Rob Pike [Thu, 5 Mar 2009 05:06:38 +0000 (21:06 -0800)]
remove some incorrect capitalizations.
add commentary.
R=rsc
DELTA=231 (41 added, 24 deleted, 166 changed)
OCL=25724
CL=25726
Rob Pike [Thu, 5 Mar 2009 04:39:39 +0000 (20:39 -0800)]
fix an HTML glitch.
say a little more about package main.
R=rsc
DELTA=7 (4 added, 0 deleted, 3 changed)
OCL=25725
CL=25725
Russ Cox [Thu, 5 Mar 2009 01:38:37 +0000 (17:38 -0800)]
reject invalid map key types at compile time
R=ken
OCL=25720
CL=25720
Russ Cox [Thu, 5 Mar 2009 01:37:47 +0000 (17:37 -0800)]
fix build
TBR=gri
OCL=25719
CL=25719
Russ Cox [Thu, 5 Mar 2009 01:19:21 +0000 (17:19 -0800)]
Suggested tweaks up to package section.
Major ones:
* Be consistent: "numeric type" and "arithmetic operator".
* if/swtch take "simple statement" not "short variable declaration".
* There was a comment that implied for x,y := range z() might
evaluate z() multiple times. I deleted it.
R=r,gri
DELTA=124 (24 added, 4 deleted, 96 changed)
OCL=25706
CL=25715
Robert Griesemer [Thu, 5 Mar 2009 01:16:58 +0000 (17:16 -0800)]
- missing makefile
R=r
OCL=25714
CL=25714
Robert Griesemer [Thu, 5 Mar 2009 01:13:12 +0000 (17:13 -0800)]
Created new directory lib/lang:
- move scanner to into lib/lang
- added test
- adjusted various make and build files
R=r
DELTA=1731 (973 added, 753 deleted, 5 changed)
OCL=25668
CL=25713
Russ Cox [Wed, 4 Mar 2009 22:50:25 +0000 (14:50 -0800)]
disallow ordinary-type.(T), as in spec.
R=ken
OCL=25705
CL=25705
Russ Cox [Wed, 4 Mar 2009 22:44:51 +0000 (14:44 -0800)]
change Go logo to link to home page
fix grammar for forward declaration of interface, struct.
move array down next to slice.
fix type equal example for structs.
R=r,gri
DELTA=247 (122 added, 114 deleted, 11 changed)
OCL=25694
CL=25704
Robert Griesemer [Wed, 4 Mar 2009 02:25:07 +0000 (18:25 -0800)]
Preparation for moving scanner into a lib:
- separated out token definition from scanner
- cleaned up token and scanner implementation
- added comments to exported interfaces
R=r
OCL=25665
CL=25665
Rob Pike [Wed, 4 Mar 2009 00:10:15 +0000 (16:10 -0800)]
rephrase redundancy.
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25652
CL=25656
Rob Pike [Wed, 4 Mar 2009 00:09:40 +0000 (16:09 -0800)]
enable pretty in run.bash
R=rsc
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=25651
CL=25655
Rob Pike [Wed, 4 Mar 2009 00:09:12 +0000 (16:09 -0800)]
update missed test case to {}
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25648
CL=25654
Robert Griesemer [Wed, 4 Mar 2009 00:00:06 +0000 (16:00 -0800)]
- allow ()'s and {}'s for now when parsing calls/composite literals
- require ()'s around composite literals at the if/for/switch control clause level
- fixed a nasty bug: passing a value instead of a pointer to a value to an interface
variable - and not noticing that the value is copied
R=r
OCL=25649
CL=25649
Russ Cox [Tue, 3 Mar 2009 23:40:30 +0000 (15:40 -0800)]
The final piece of the alternative to my parens proposal
(i.e., the status quo with braces in composite literals).
DELTA=20 (16 added, 0 deleted, 4 changed)
OCL=25640
CL=25646
Russ Cox [Tue, 3 Mar 2009 16:41:02 +0000 (08:41 -0800)]
back to T{x}, stricter handling of T(x) vs x.(T)
R=ken
DELTA=131 (60 added, 41 deleted, 30 changed)
OCL=25617
CL=25633
Russ Cox [Tue, 3 Mar 2009 16:39:12 +0000 (08:39 -0800)]
Automated g4 rollback of changelist 25024,
plus significant hand editing.
Back to T{x} for composite literals.
R=r
OCL=25612
CL=25632
Russ Cox [Tue, 3 Mar 2009 16:10:25 +0000 (08:10 -0800)]
clarify conversions vs type guards.
allow conversions between equal types.
R=r
DELTA=15 (4 added, 4 deleted, 7 changed)
OCL=25618
CL=25630
Robert Griesemer [Tue, 3 Mar 2009 04:27:09 +0000 (20:27 -0800)]
scanner cleanup - getting it ready to as a library
- removed unneeded code that accumulated over time
- change src from string to []byte (perhaps should be io.Read
but that has some other disadvantages)
- simplified interface
R=r
OCL=25615
CL=25615
Rob Pike [Tue, 3 Mar 2009 04:17:12 +0000 (20:17 -0800)]
redo poor example of slices.
R=rsc
OCL=25614
CL=25614
Rob Pike [Tue, 3 Mar 2009 03:13:40 +0000 (19:13 -0800)]
address most of the editorial comments through "types"
R=rsc
DELTA=41 (9 added, 4 deleted, 28 changed)
OCL=25611
CL=25611
Robert Griesemer [Tue, 3 Mar 2009 01:52:58 +0000 (17:52 -0800)]
- itob
- more test cases
R=rsc
DELTA=97 (52 added, 4 deleted, 41 changed)
OCL=25585
CL=25607
Rob Pike [Tue, 3 Mar 2009 01:52:52 +0000 (17:52 -0800)]
delete paragraph about unimplemented select-on-type feature.
change () to {} in all composite literals
DELTA=20 (0 added, 7 deleted, 13 changed)
OCL=25604
CL=25606
Rob Pike [Tue, 3 Mar 2009 00:17:29 +0000 (16:17 -0800)]
Packages.
DELTA=170 (73 added, 21 deleted, 76 changed)
OCL=25556
CL=25594
Russ Cox [Tue, 3 Mar 2009 00:12:04 +0000 (16:12 -0800)]
fix names: s/fd/r/
R=r
DELTA=9 (0 added, 0 deleted, 9 changed)
OCL=25593
CL=25593
Rob Pike [Sat, 28 Feb 2009 00:47:48 +0000 (16:47 -0800)]
most of the rest.
only the package section is untouched.
R=gri
DELTA=542 (186 added, 70 deleted, 286 changed)
OCL=25485
CL=25532
Robert Griesemer [Sat, 28 Feb 2009 00:28:36 +0000 (16:28 -0800)]
fix a bug: do not print a ';' after a label if there wasn't one
R=r
OCL=25526
CL=25528
Robert Griesemer [Fri, 27 Feb 2009 23:40:17 +0000 (15:40 -0800)]
Steps towards a general scanner/parser library for Go:
- converted more of AST and parser to use interfaces and explicit
structs for individual Go constructs (can be replaced now with
interface calls such that the parser becomes AST structure
independent, as suggested by rsc)
- added more tests (find all .go files under GOROOT)
- (temporarily) lost html links for identifiers when generating
html output
- TODO: lots of cleanups
R=r
OCL=25518
CL=25518