Commit 3aa892c4 authored by Robert Griesemer's avatar Robert Griesemer

daily snapshot:

- more work on template-driven ast printing

R=r
OCL=27851
CL=27851
parent b03b541b
// TODO prefix decl doesn't work
//ast .
//string =
// "%s" ;
ast.Ident =
Value .
pointer =
^ ;
ast.Program =
"package " Name "\n" { Decls "\n\n" } .
array =
^ ;
ast.GenDecl =
"def " .
//token.Token =
// "token<%d>" ; // this should be a Go-installed formatter
ast.FuncDecl =
"func " .
\ No newline at end of file
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 =
^ ;
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment