1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:54:45 -07:00
go/usr/gri/pretty
Robert Griesemer a1ee6804dd - fixed bug which prevented parser.go from compiling
(typo in ptr decl lead to an unresolved forward declaration)
- fixed parser bugs
- fixed Makefile
- now successfully parses most code

Issues:
- composite literals (cannot be identified easily from syntax alone)
- new(T, ...) (cannot be identified easily from syntax alone since
  new is not a keyword and thus could be a different function then
  the allocation function at which point "new((x + y))" is legal,
  but the inner "(x" looks like the beginning of a function type)

R=r
OCL=15515
CL=15515
2008-09-18 22:53:54 -07:00
..
ast.go First cut at a Go pretty printer: 2008-09-18 16:58:37 -07:00
Makefile - fixed bug which prevented parser.go from compiling 2008-09-18 22:53:54 -07:00
parser.go - fixed bug which prevented parser.go from compiling 2008-09-18 22:53:54 -07:00
platform.go First cut at a Go pretty printer: 2008-09-18 16:58:37 -07:00
pretty.go - fixed bug which prevented parser.go from compiling 2008-09-18 22:53:54 -07:00
printer.go First cut at a Go pretty printer: 2008-09-18 16:58:37 -07:00
scanner.go - fixed bug which prevented parser.go from compiling 2008-09-18 22:53:54 -07:00
utils.go First cut at a Go pretty printer: 2008-09-18 16:58:37 -07:00