summaryrefslogtreecommitdiff
path: root/usr/gri
AgeCommit message (Collapse)AuthorFilesLines
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox2-73/+73
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-03-02scanner cleanup - getting it ready to as a libraryRobert Griesemer6-160/+88
- 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
2009-02-27fix a bug: do not print a ';' after a label if there wasn't oneRobert Griesemer1-1/+5
R=r OCL=25526 CL=25528
2009-02-27Steps towards a general scanner/parser library for Go:Robert Griesemer7-624/+847
- 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
2009-02-23- fixed a bug with //-comment parsingRobert Griesemer1-1/+0
R=r OCL=25343 CL=25343
2009-02-19- permit ()'s in types (TODO: update spec)Robert Griesemer1-11/+24
- accept embedded interfaces in interfaces - missing: output incorrect, but at least all source code is accepted again R=r OCL=25223 CL=25223
2009-02-13- accept new composite literal syntaxRobert Griesemer3-148/+33
- remove all parsing heuristics - as a result, accept a wider syntax, but parser is simpler R=r OCL=25029 CL=25029
2009-02-13- vector package (identical to array except for names)Robert Griesemer5-35/+35
- updated some file (but not all - left array package in place for now) R=rsc DELTA=530 (483 added, 0 deleted, 47 changed) OCL=25025 CL=25025
2009-02-13convert composite literals from { } to ( ).Russ Cox3-58/+58
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-12- fixed bugs related to the empty statementRobert Griesemer4-19/+28
(now in sync with the spec and with 6g) - fixed incorrect logging statement in gds R=r OCL=24970 CL=24970
2009-02-11insert type assertions when narrowing.Russ Cox1-2/+2
R=r OCL=24349 CL=24913
2009-02-09Some real GDS functionality:Robert Griesemer3-28/+134
- directory listings w/ working links - some links working in source code (most don't do the right thing yet) - use of logging R=r OCL=24728 CL=24728
2009-02-06snapshot:Robert Griesemer5-45/+152
- first stab at a Go Documentation Server (gds) - various fixes to make initial version of gds work R=r OCL=24588 CL=24588
2009-02-06- preparation for setting up typesRobert Griesemer10-427/+495
- moved Object, Type, Scope out of AST into symboltable - moved universe into symboltable - removed dead code - fixed dependency computation (pretty -d filename.go) - lots of cleanups - removed tocken channel connection between parser and scanner (was cute, but not really needed) R=r OCL=24545 CL=24545
2009-02-05- caseify parser functions (all but a few should not be exported)Robert Griesemer1-553/+491
- more elegant tracing code - removed some dead code, cleanups R=r OCL=24452 CL=24452
2009-02-05snapshot:Robert Griesemer4-520/+103
- ast statements now use interfaces - deleted old (now unused) code R=r OCL=24422 CL=24422
2009-02-04today's snapshot: steps towards using interfaces for statements in astRobert Griesemer3-89/+587
R=r OCL=24380 CL=24380
2009-02-03- converted expr representation of ast into a new representationRobert Griesemer4-594/+786
using interfaces properly => much cleaner code - converted tracing code to use 'defer' statement - next steps: convert rest of ast as well R=r OCL=24277 CL=24277
2009-02-02- added experimental flag '-def': will print (not parse!)Robert Griesemer1-1/+6
'def' instead of 'func', 'const', or 'type' R=r OCL=24092 CL=24094
2009-01-30- changed pretty parser to parse and print new function type syntaxRobert Griesemer4-40/+56
- added more test cases - fixed a bug in test script which prevented errors to show up... R=r OCL=23832 CL=23974
2009-01-29- removed obsolete files from repositoryRobert Griesemer19-5618/+0
(most of this has been integrated into pretty, the rest has been archived). R=r OCL=23842 CL=23842
2009-01-29- make test work with 6gRobert Griesemer1-1/+1
R=r OCL=23821 CL=23823
2009-01-26defer statementRobert Griesemer5-9/+13
R=r OCL=23542 CL=23542
2009-01-23- snapshot before making larger changeRobert Griesemer2-41/+103
R=r OCL=23403 CL=23403
2009-01-23snapshot before making more changes:Robert Griesemer5-162/+222
- fine-tuning of ast - more accurate block pos info (improved printing in some cases) - collecting local variables and fields - more work on type checking - lots of minor tweaks R=r OCL=23375 CL=23375
2009-01-20- updated pretty (removed "export")Robert Griesemer8-115/+35
R=r OCL=23134 CL=23134
2009-01-20delete exportRuss Cox31-278/+278
TBR=r OCL=23121 CL=23127
2009-01-16casify struct fieldsRobert Griesemer4-23/+23
R=r OCL=22998 CL=22998
2009-01-16casify, cleanup sysRuss Cox8-47/+61
R=r OCL=22978 CL=22984
2009-01-15casify prettyRobert Griesemer12-618/+620
R=r OCL=22899 CL=22899
2009-01-15- fixed untab.go to compile againRobert Griesemer1-7/+7
R=r OCL=22871 CL=22871
2009-01-15- added mechanism to detect capitalization issuesRobert Griesemer4-6/+56
Use: pretty -naming files R=r OCL=22859 CL=22859
2009-01-15printf->Printf etc.Rob Pike1-1/+1
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
2009-01-14- use new letter definition for prettyRobert Griesemer4-18/+32
- fixed a bug with error column reporting in the presence of utf-8 chars - fixed an assertion failure R=r OCL=22762 CL=22762
2009-01-12- removed an unnecessary field from AST.Expr nodesRobert Griesemer3-38/+38
R=r OCL=22601 CL=22601
2009-01-09- remove obsolete files (missed before)Robert Griesemer3-491/+0
R=r OCL=22475 CL=22475
2009-01-09- preparation to add type info to astRobert Griesemer8-144/+361
- consolidation of files, cleanup - more success producing idempotent output for some files with comments containing tabs - snapshot of the day R=r OCL=22474 CL=22474
2009-01-09simplify flag interface. no more BVal etc. you just get a pointer.Rob Pike3-34/+37
fixed everything except the tutorial. R=rsc DELTA=404 (94 added, 139 deleted, 171 changed) OCL=22414 CL=22422
2009-01-08- first (global) idents with proper links to declarations in html outputRobert Griesemer4-29/+68
(e.g. pretty -html source.go > source.html; then look at the html.file in a browser) R=r OCL=22331 CL=22331
2009-01-08- fixed a bug with building right-recursive trees iterativelyRobert Griesemer3-127/+149
- moving scope handling into parser (simpler) - snapshot of work today so far R=r OCL=22301 CL=22301
2009-01-07- more steps towards tracking idents in scopesRobert Griesemer9-57/+56
- snapshot of today R=r OCL=22247 CL=22247
2009-01-07- enabling tracking of declarationsRobert Griesemer5-27/+37
- removed dead code - snapshot before making a lareger structural change R=r OCL=22226 CL=22226
2009-01-06- support for [...] parsing and pretty printingRobert Griesemer2-1/+7
R=r OCL=22185 CL=22185
2009-01-06- make code in gosrc compile again, check in all pending changesRobert Griesemer15-535/+785
(this code doesn't match the existing language at this point, but it's a large code base which compiles - will eventually go away) - enable compilation of it again in run.bash R=r DELTA=1147 (534 added, 311 deleted, 302 changed) OCL=22176 CL=22176
2009-01-06- fix parse heuristic: make(x) must accept a type for xRobert Griesemer1-2/+2
R=r OCL=22171 CL=22171
2009-01-06- adjusted pretty to use old new, makeRobert Griesemer4-19/+19
R=r OCL=22160 CL=22160
2009-01-06- steps towards augmenting ast with declaration infoRobert Griesemer3-8/+106
(will help produce html output where we can click on identifiers and get to the declaration) - snapshot before changing back to old new R=r OCL=22159 CL=22159
2008-12-19Update for source code changes.Ian Lance Taylor1-2/+14
R=gri DELTA=15 (13 added, 1 deleted, 1 changed) OCL=21632 CL=21639
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox15-443/+443
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-16fix syntax error (syntax accepted by 6g, but not by pretty printer)Robert Griesemer1-1/+1
R=r OCL=21385 CL=21385