SaffronModuleHeaderMethods.ThreeC4
Copyright Ó 1988 by Xerox Corporation. All rights reserved.
James Rauen, July 12, 1988 8:58:37 am PDT
Include [SaffronAG, SaffronTreeDecls, SaffronBaseDecls];
SaffronModuleHeader: Module = Begin
for DefHead: AbstractProduction [Locks, ModuleList, Shares, Access]
let GetAccessVal[tree, default] ← GetAccessVal[Access, default];
let AddModulePropertiesToCompilerState[tree, cs] ← cs2
where cs2 ← SetDefaultAccess[cs, GetAccessVal[Access, AccessValConst["public"]]];
for ProgHead: AbstractProduction [Safe, Class, Arguments, Locks, Interface, Access]
let GetAccessVal[tree, default] ← GetAccessVal[Access, default];
let AddModulePropertiesToCompilerState[tree, cs] ← cs2
where cs2 ← SetDefaultAccess[cs, GetAccessVal[Access, AccessValConst["private"]]];
End.