summaryrefslogtreecommitdiff
path: root/usr/gri/pretty/compilation.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-03-05 17:15:36 -0800
committerRobert Griesemer <gri@golang.org>2009-03-05 17:15:36 -0800
commit1b3f18942be33faae1b5ba467b58eceb54c8026b (patch)
tree073148e3f2f143f1ab9b5a9c54dca5796786ca84 /usr/gri/pretty/compilation.go
parentf518d0f3145781450b5a67afbb9643d8898ed499 (diff)
downloadgolang-1b3f18942be33faae1b5ba467b58eceb54c8026b.tar.gz
Lots of cleanups in prep. for checking in parser and ast into lib:
- removed any symbol table stuff - some interface cleanup - removed lot's of dead wood - half the support for type switches (simple form) - name capitalization Several rounds to come. R=r OCL=25797 CL=25797
Diffstat (limited to 'usr/gri/pretty/compilation.go')
-rw-r--r--usr/gri/pretty/compilation.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/gri/pretty/compilation.go b/usr/gri/pretty/compilation.go
index 74b589e40..bec5d0703 100644
--- a/usr/gri/pretty/compilation.go
+++ b/usr/gri/pretty/compilation.go
@@ -27,7 +27,6 @@ func assert(b bool) {
type Flags struct {
Verbose bool;
- Sixg bool;
Deps bool;
Columns bool;
}
@@ -124,7 +123,7 @@ func Compile(src_file string, flags *Flags) (*AST.Program, int) {
scanner.Init(src, &err, true);
var parser Parser.Parser;
- parser.Open(&scanner, &err, flags.Verbose, flags.Sixg, flags.Deps);
+ parser.Open(&scanner, &err, flags.Verbose);
prog := parser.ParseProgram();
@@ -204,6 +203,7 @@ func addDeps(globalset map [string] bool, wset *vector.Vector, src_file string,
func ComputeDeps(src_file string, flags *Flags) {
+ panic("dependency printing currently disabled");
globalset := make(map [string] bool);
wset := vector.New(0);
wset.Push(Utils.TrimExt(src_file, ".go"));