- adjusted makefiles
SVN=126763
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package Globals;
+package Globals
// The following types should really be in their respective files
}
+/*
func (scope *Scope) Lookup(ident string) *Object {
panic "UNIMPLEMENTED";
return nil;
panic "UNIMPLEMENTED";
return nil;
}
+*/
P.Trace("Program");
P.Expect(Scanner.PACKAGE);
P.ParseIdent();
+ P.Optional(Scanner.SEMICOLON);
+
for P.tok == Scanner.IMPORT {
P.ParseImportDecl();
P.Optional(Scanner.SEMICOLON);
}
+
for P.tok != Scanner.EOF {
P.ParseDeclaration();
P.Optional(Scanner.SEMICOLON);