first primitive cut at resolving missing imports automatically:
if an import file is missing, the corresponding source
is compiled automatically, if found
R=r
OCL=13990
CL=13990
diff --git a/usr/gri/gosrc/parser.go b/usr/gri/gosrc/parser.go
index 2e2346e..61984ef 100644
--- a/usr/gri/gosrc/parser.go
+++ b/usr/gri/gosrc/parser.go
@@ -17,7 +17,7 @@
export type Parser struct {
comp *Globals.Compilation;
semantic_checks bool;
- verbose, indent int;
+ verbose, indent uint;
S *Scanner.Scanner;
C *chan *Scanner.Token;
@@ -78,8 +78,8 @@
func (P *Parser) Open(comp *Globals.Compilation, S *Scanner.Scanner, C *chan *Scanner.Token) {
P.comp = comp;
- P.semantic_checks = comp.flags.semantic_checks;
- P.verbose = comp.flags.verbose;
+ P.semantic_checks = comp.flags.ast;
+ P.verbose = comp.flags.verbosity;
P.indent = 0;
P.S = S;
P.C = C;