1 (* P0SymBuild.def pass 0 symbol creation.
3 Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
6 This file is part of GNU Modula-2.
8 GNU Modula-2 is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GNU Modula-2 is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Modula-2; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. *)
22 DEFINITION MODULE P0SymBuild ;
28 Date : Sat Sep 6 11:48:06 2014
30 Description: provides an interface to the construction of symbols during pass 0.
33 FROM NameKey IMPORT Name ;
37 EndModule - shutdown the module and create definition symbols for all imported
45 RegisterImports - remember all imported modules.
48 PROCEDURE RegisterImports ;
52 RegisterProgramModule - register the top of stack as a program module.
53 It starts a new module scope.
56 PROCEDURE RegisterProgramModule ;
60 RegisterImplementationModule - register the top of stack as an implementation module.
61 It starts a new module scope.
64 PROCEDURE RegisterImplementationModule ;
68 RegisterDefinitionModule - register the top of stack as a definition module.
69 It starts a new module scope.
72 PROCEDURE RegisterDefinitionModule (forC: BOOLEAN) ;
76 RegisterInnerModule - register the top of stack as an inner module, this module name
77 will be removed from the list of outstanding imports in the
79 It starts a new module scope.
82 PROCEDURE RegisterInnerModule ;
86 RegisterInnerImports -
89 PROCEDURE RegisterInnerImports ;
93 RegisterProcedure - register the top of stack as a procedure.
96 PROCEDURE RegisterProcedure ;
100 EndBuildProcedure - ends building a Procedure.
103 PROCEDURE EndProcedure ;
124 PROCEDURE EnterBlock (n: Name) ;
131 PROCEDURE LeaveBlock ;