mirror of
https://github.com/golang/go
synced 2024-10-03 19:21:21 -06:00
448a7b46a9
- minor bug fixes in pretty, godoc - first cut at template-driven printing of ast TBR=r OCL=27825 CL=27825
14 lines
170 B
Plaintext
14 lines
170 B
Plaintext
// TODO prefix decl doesn't work
|
|
//ast .
|
|
|
|
ast.Ident =
|
|
Value .
|
|
|
|
ast.Program =
|
|
"package " Name "\n" { Decls "\n\n" } .
|
|
|
|
ast.GenDecl =
|
|
"def " .
|
|
|
|
ast.FuncDecl =
|
|
"func " . |