summaryrefslogtreecommitdiff
path: root/src/lib/go
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike14-5174/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-05rebuilt Makefiles for CL 29923Russ Cox5-70/+30
R=r DELTA=761 (1 added, 433 deleted, 327 changed) OCL=29927 CL=29966
2009-06-04allow &^= in assignmentsRobert Griesemer1-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=29889 CL=29889
2009-06-02remove superfluous indirectionRobert Griesemer1-7/+7
R=rsc DELTA=7 (0 added, 0 deleted, 7 changed) OCL=29776 CL=29778
2009-06-02- renamed format -> datafmtRobert Griesemer2-1/+132
- factored out datafmt-specifics from pretty to ast R=rsc DELTA=3580 (1810 added, 1763 deleted, 7 changed) OCL=29770 CL=29774
2009-06-01- enable scanner to handle illegal chars w/o returning an errorRobert Griesemer3-15/+55
so that it can be used for non-Go chars - adjust parser accordingly R=rsc DELTA=58 (42 added, 2 deleted, 14 changed) OCL=29688 CL=29703
2009-05-22move pretty/comment.go into go/doc.Russ Cox3-96/+329
extract comment text code out of go/doc/doc.go into comment.go. no code changes, just rearrangement. first step so i can write tests. R=gri DELTA=633 (318 added, 301 deleted, 14 changed) OCL=29269 CL=29293
2009-05-22- fix regexp once more in doc.go:Robert Griesemer1-1/+1
comment markers must only be stripped if they are at the very beginning otherwise comments that contain code with comments get screwed up (the ast delivers clean comments with no junk before or after) - fix indentation in google/net/rpc/rpc.go which screwed up godoc formatting R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=29223 CL=29267
2009-05-21fix regexp to strip comment markersRobert Griesemer1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=29221 CL=29221
2009-05-21adjustments for relaxed composite literal syntaxRobert Griesemer1-30/+9
R=r DELTA=41 (0 added, 21 deleted, 20 changed) OCL=29219 CL=29219
2009-05-20more useful error stringRobert Griesemer1-1/+5
R=r DELTA=5 (4 added, 0 deleted, 1 changed) OCL=29088 CL=29090
2009-05-18- changed parser to return os.Error, removed ErrorHandlerRobert Griesemer3-82/+144
- added IsValid predicate to token.Position - updated pretty, godoc, gobuild - updated/expanded test cases R=rsc DELTA=265 (97 added, 78 deleted, 90 changed) OCL=28961 CL=29005
2009-05-15don't require ()'s around composite literals if theRobert Griesemer1-31/+26
literal type is not a type name R=rsc DELTA=41 (2 added, 7 deleted, 32 changed) OCL=28955 CL=28957
2009-05-13Simplified AST:Robert Griesemer2-39/+13
- one node for array and slice types - one node for index and slice expressions - simplified parser, astprinter, and ast.txt R=r DELTA=71 (0 added, 43 deleted, 28 changed) OCL=28768 CL=28768
2009-05-11A couple of godoc improvements:Robert Griesemer1-8/+17
- sort directories before printing - apply filtering to factory functions and methods - remove a couple of unused files R=r DELTA=84 (34 added, 40 deleted, 10 changed) OCL=28657 CL=28657
2009-05-11change utf8.FullRuneInString and utf8.DecodeRuneInStringRuss Cox1-1/+1
to use single string argument instead of string, index. R=r DELTA=136 (9 added, 7 deleted, 120 changed) OCL=28642 CL=28644
2009-05-08implications of stricter type equality:Russ Cox1-2/+2
if both types are named, they must be the same type (arising from the same declaration). R=r,gri DELTA=44 (21 added, 4 deleted, 19 changed) OCL=28436 CL=28577
2009-05-08Name change to improve embeddability:Rob Pike1-1/+1
io.Read->io.Reader io.Write,Close,etc.->io.Writer,Closer etc. R=rsc DELTA=190 (0 added, 0 deleted, 190 changed) OCL=28525 CL=28535
2009-05-06makefile fixesRuss Cox1-45/+0
R=r OCL=28369 CL=28369
2009-05-05add missing Makefile to repair buildRob Pike1-0/+45
TBR=gri OCL=28320 CL=28320
2009-05-05new dir structure for lib/goRobert Griesemer13-100/+340
R=r DELTA=9298 (4760 added, 4536 deleted, 2 changed) OCL=28317 CL=28317
2009-04-25- install doc in lib/goRobert Griesemer2-2/+569
- adjust dependent files R=rsc DELTA=1132 (567 added, 562 deleted, 3 changed) OCL=27862 CL=27862
2009-04-24- fixed a couple of potential end-less loopsRobert Griesemer1-10/+11
(no progress in presence of syntax errors) - end parsing early if source doesn't start proper package clause R=iant DELTA=18 (7 added, 6 deleted, 5 changed) OCL=27840 CL=27842
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox6-47/+51
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-16regenerate Makefiles.Russ Cox1-14/+23
fix bug in RPC.go (import "RPC" not "rpc.pb") R=r DELTA=483 (261 added, 64 deleted, 158 changed) OCL=27547 CL=27549
2009-04-15code changes for array conversion.Russ Cox1-1/+1
as a reminder, the old conversion was that you could write var arr [10]byte; var slice []byte; slice = arr; but now you have to write slice = &arr; the change eliminates an implicit &, so that the only implicit &s left are in the . operator and in string(arr). also, removed utf8.EncodeRuneToString in favor of string(rune). R=r DELTA=83 (1 added, 23 deleted, 59 changed) OCL=27531 CL=27534
2009-04-15godoc: use data-driven templates for html, text generationRuss Cox1-5/+27
R=gri DELTA=1341 (668 added, 282 deleted, 391 changed) OCL=27485 CL=27526
2009-04-02require ";" separator after function literalsRobert Griesemer1-0/+1
R=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=27057 CL=27059
2009-04-02- Ident node now takes a string Value instead of a []bytesRobert Griesemer2-11/+11
(this removes a lot of string() conversions down the road) - a few minor adjustments R=rsc DELTA=11 (0 added, 0 deleted, 11 changed) OCL=27029 CL=27038
2009-04-02Some AST tuning:Robert Griesemer2-89/+89
- have explicit XSpec nodes for declarations - have a general GenDecl node instead of DeclList R=rsc DELTA=164 (52 added, 52 deleted, 60 changed) OCL=27005 CL=27027
2009-03-311) Move parser.go into src/lib/goRobert Griesemer4-24/+2053
- minor adjustments as suggested by rsc 2) Added parser_test fragment 3) Renamed some types in AST.go per rsc request R=rsc DELTA=2053 (2027 added, 0 deleted, 26 changed) OCL=26963 CL=26971
2009-03-27- have explicit KeyValueExpr node instead of BinaryExpr ':' (as discussed)Robert Griesemer2-12/+17
- remove ':' token from operator precedence levels R=rsc DELTA=25 (13 added, 8 deleted, 4 changed) OCL=26850 CL=26854
2009-03-26minor tweaks:Robert Griesemer2-15/+40
- permit scanner to run w/o error handler - provide an error counter R=iant DELTA=43 (25 added, 0 deleted, 18 changed) OCL=26804 CL=26812
2009-03-26move AST into src/lib/goRobert Griesemer2-2/+759
R=r DELTA=1509 (756 added, 751 deleted, 2 changed) OCL=26799 CL=26801
2009-03-26fix scanner initialization, add testRobert Griesemer2-2/+27
R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=26798 CL=26798
2009-03-26- renamed scanner.Location to token.PositionRobert Griesemer3-64/+74
- by moving Position into token, scanner dependencies are removed from several files - clearer field names in token.Position, now possible to have a Pos() accessor w/o naming conflicts - added Pos() accessor - use anonymous token.Position field in AST nodes R=r DELTA=244 (28 added, 55 deleted, 161 changed) OCL=26786 CL=26793
2009-03-26- introduce explicit Token typeRobert Griesemer3-26/+29
- convert some functions into methods - corresponding changes in pretty R=r DELTA=57 (3 added, 0 deleted, 54 changed) OCL=26764 CL=26777
2009-03-16added &^ and &^=Robert Griesemer3-2/+14
R=rsc DELTA=14 (12 added, 0 deleted, 2 changed) OCL=26278 CL=26348
2009-03-12- remove special handling of '\n' characters (used to be treated as commentsRobert Griesemer2-187/+181
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
2009-03-11- scanner to track line/col number instead of byte position onlyRobert Griesemer2-67/+71
- fixed a parameter name in tabwriter R=rsc DELTA=110 (21 added, 17 deleted, 72 changed) OCL=26123 CL=26127
2009-03-10- allow unicode digits in identifiersRobert Griesemer2-28/+42
- 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
2009-03-09- more documentation adjustmentsRobert Griesemer2-6/+5
R=rsc DELTA=6 (0 added, 1 deleted, 5 changed) OCL=25970 CL=25973
2009-03-09Fixing comment.Robert Griesemer1-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=25956 CL=25960
2009-03-09scanner.go documentationRobert Griesemer1-13/+18
R=r DELTA=22 (8 added, 3 deleted, 11 changed) OCL=25947 CL=25955
2009-03-09token.go documentationRobert Griesemer1-10/+32
R=r DELTA=34 (24 added, 2 deleted, 8 changed) OCL=25946 CL=25954
2009-03-09- directory rename lang -> goRobert Griesemer4-0/+1039
R=rsc DELTA=2070 (1035 added, 1035 deleted, 0 changed) OCL=25939 CL=25939