]> Cypherpunks repositories - gostls13.git/commit
- collect addition source position information in parser
authorRobert Griesemer <gri@golang.org>
Thu, 27 Nov 2008 01:07:45 +0000 (17:07 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 27 Nov 2008 01:07:45 +0000 (17:07 -0800)
commitd79f687ed8a94dae7d15c4e4622a770eb0373fad
tree16adb542ec26065dcc61c6c3a6331a621a092951
parent732b53a1feeb95582ab038dde9a5d9081a86d1b1
- 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
usr/gri/pretty/ast.go
usr/gri/pretty/parser.go
usr/gri/pretty/printer.go
usr/gri/pretty/selftest2.go