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 //string =
//ast . // "%s" ;
ast.Ident = pointer =
Value . ^ ;
ast.Program = array =
"package " Name "\n" { Decls "\n\n" } . ^ ;
ast.GenDecl = //token.Token =
"def " . // "token<%d>" ; // this should be a Go-installed formatter
ast.FuncDecl = ast
"func " . ;
\ No newline at end of file
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