1
0
mirror of https://github.com/golang/go synced 2024-10-03 16:41:28 -06:00
go/usr/gri/pretty/ast.txt

40 lines
394 B
Plaintext
Raw Normal View History

//string =
// "%s" ;
pointer =
^ ;
array =
^ ;
//token.Token =
// "token<%d>" ; // this should be a Go-installed formatter
ast
;
Comments =
"comments\n" ;
Ident =
Value ;
Program =
"package " Name "\n\n" { Decls "\n\n" } ;
GenDecl =
Doc
Tok " (\n"
")\n";
FuncType =
"(" { Params } ")" ;
BlockStmt =
"{\n" "}\n" ;
FuncDecl =
"func " Name Type [ " " Body ] ;
Decl =
^ ;