]> Cypherpunks repositories - gostls13.git/commit
Steps towards a general scanner/parser library for Go:
authorRobert Griesemer <gri@golang.org>
Fri, 27 Feb 2009 23:40:17 +0000 (15:40 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 27 Feb 2009 23:40:17 +0000 (15:40 -0800)
commit3689e221e8af8039ed70eb7ed0d4e62494b34f4f
treeb5c5e8c1c022004ea7c9457fe9372f31e684f755
parentdf3183f528426c675e783ed437d72041b15ebb94
Steps towards a general scanner/parser library for Go:
- 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
usr/gri/pretty/ast.go
usr/gri/pretty/compilation.go
usr/gri/pretty/parser.go
usr/gri/pretty/printer.go
usr/gri/pretty/selftest1.go
usr/gri/pretty/test.sh
usr/gri/pretty/typechecker.go