1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:40:08 -07:00
go/usr/gri/pretty
Robert Griesemer d79f687ed8 - collect addition source position information in parser
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-26 17:07:45 -08:00
..
ast.go - collect addition source position information in parser 2008-11-26 17:07:45 -08:00
compilation.go - snapshot of state before trying yet another, hopefully better working 2008-11-26 13:23:26 -08:00
Makefile - move tabwriter into library 2008-11-20 17:39:41 -08:00
Makefile.iant - added simple facility to print Makefile dependency rules given a Go source file 2008-10-26 21:32:30 -07:00
parser.go - collect addition source position information in parser 2008-11-26 17:07:45 -08:00
platform.go - added simple facility to print Makefile dependency rules given a Go source file 2008-10-26 21:32:30 -07:00
pretty.go - snapshot of state before trying yet another, hopefully better working 2008-11-26 13:23:26 -08:00
printer.go - collect addition source position information in parser 2008-11-26 17:07:45 -08:00
scanner.go - snapshot of state before trying yet another, hopefully better working 2008-11-26 13:23:26 -08:00
selftest0.go - handle field tags in pretty printer 2008-10-31 14:27:34 -07:00
selftest1.go - handle field tags in pretty printer 2008-10-31 14:27:34 -07:00
selftest2.go - collect addition source position information in parser 2008-11-26 17:07:45 -08:00
test.sh - support for alignment via tabs instead of blanks 2008-11-18 19:25:43 -08:00
untab.go - implemented arbitrary padding char for tabwriter 2008-11-21 09:35:49 -08:00
utils.go First cut at a Go pretty printer: 2008-09-18 16:58:37 -07:00