summaryrefslogtreecommitdiff
path: root/usr/gri/pretty/selftest2.go
AgeCommit message (Collapse)AuthorFilesLines
2009-09-24cleanup in personal dir:Robert Griesemer1-158/+0
- delete some unused files (copies archived elsewhere) TBR=r OCL=34994 CL=34994
2009-04-21remove lots of accumulated crud:Robert Griesemer1-1/+1
- delete utility files which contained functionality that is now elsewhere (or saved the files away for now) - cleanup Makefile (remove unnecessary deps) - minor adjustments to godoc, fixed a couple of bugs - make pretty.go self-contained TBR=r DELTA=625 (81 added, 510 deleted, 34 changed) OCL=27700 CL=27702
2009-03-05- using doc template for gds nowRobert Griesemer1-3/+4
- no interface extraction yet R=r OCL=25808 CL=25808
2009-03-05Lots of cleanups in prep. for checking in parser and ast into lib:Robert Griesemer1-1/+14
- 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
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox1-4/+4
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-13convert composite literals from { } to ( ).Russ Cox1-4/+4
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-01-29- make test work with 6gRobert Griesemer1-1/+1
R=r OCL=23821 CL=23823
2009-01-26defer statementRobert Griesemer1-1/+1
R=r OCL=23542 CL=23542
2009-01-20delete exportRuss Cox1-3/+3
TBR=r OCL=23121 CL=23127
2009-01-15casify prettyRobert Griesemer1-9/+9
R=r OCL=22899 CL=22899
2009-01-14- use new letter definition for prettyRobert Griesemer1-0/+6
- 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-08- fixed a bug with building right-recursive trees iterativelyRobert Griesemer1-0/+11
- moving scope handling into parser (simpler) - snapshot of work today so far R=r OCL=22301 CL=22301
2009-01-06- support for [...] parsing and pretty printingRobert Griesemer1-0/+3
R=r OCL=22185 CL=22185
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox1-1/+1
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-11- support for range clausesRobert Griesemer1-2/+45
R=r OCL=21030 CL=21030
2008-12-04- adjusted const decl grammar to reflect spec changesRobert Griesemer1-1/+1
- first cut at html writer (will do html escaping, html tag production) - first cut at generating basic html output via pretty - some cleanups R=r OCL=20550 CL=20550
2008-12-03- fixed a bug with import printing (missing separator between alias and string)Robert Griesemer1-0/+6
- rewrote declaration printing - was unreadable before - no semicolons after closing "}" for types R=r OCL=20379 CL=20379
2008-12-02- oversight: extra allow source-level line breaks inside statement listsRobert Griesemer1-0/+3
- fixed printing of empty structs/interfaces - enable two more tests R=r OCL=20296 CL=20296
2008-12-02- fine-tuning of white spaceRobert Griesemer1-1/+29
- by default consider extra newlines in src for better formatting - additional flags for control (-newlines, -maxnewlines, -optsemicolons) - don't print ()'s around single anonymous result types Status: Comparing the output of pretty with the input for larger files shows mostly whitespace/formatting differences, which is what is desired. TODO: - Handling of overlong lines - some esoteric cases which look funny R=r OCL=20293 CL=20293
2008-11-26- collect addition source position information in parserRobert Griesemer1-1/+9
for end of declarations, blocks, parameter lists, etc. - use extra src positions to more accurately print comments - fine-tuned low-level printing routine for comments - added better debugging support Status: - comments now appear at the right place (inbetween the right tokens) - newline control needs improvement (not very hard) - comment printing disabled for now because pretty is not idempotent with it; to enable: -comments R=r OCL=20079 CL=20079
2008-11-17- factored out tabwriter a separate writer filterRobert Griesemer1-2/+2
(to be moved into std lib eventually) - rewrote tabwriter to use byte buffers instead of strings (byte buffers to be moved into stdlib eventually) - support for recent syntax changes - no space printed after function name and before function parameters - comments still disabled due to a known bug R=r OCL=19430 CL=19430
2008-11-13* pretty printing snapshot: towards printing comments nicelyRobert Griesemer1-0/+36
- implemented elastic tabstops algorithm, now correct and documented - first cut at printing comments (use -comments flag, disabled for now) - struct field types are now aligned (using elastic tab stops) - needs more fine-tuning * fixed a bug in test script * added quick smoke test to makefile and invoke it in run.bash instead of the full test R=r OCL=19220 CL=19220