newer version, safety commit

This commit is contained in:
ceriel
1986-04-02 17:34:21 +00:00
parent 66c571d217
commit b89155a64a
8 changed files with 103 additions and 49 deletions

View File

@@ -35,9 +35,13 @@ static char *RcsId = "$Header$";
ModuleDeclaration
{
struct idf *id;
struct def *df;
} :
MODULE IDENT { open_scope(CLOSEDSCOPE, 0);
MODULE IDENT {
id = dot.TOK_IDF;
df = define(id, CurrentScope, D_MODULE);
open_scope(CLOSEDSCOPE, 0);
df->mod_scope = CurrentScope;
}
priority? ';'
import(1)*