Many improvements by Hans van Eck

This commit is contained in:
ceriel
1989-05-03 10:30:22 +00:00
parent 19638876a1
commit a94dec52d8
37 changed files with 1743 additions and 381 deletions

View File

@@ -7,6 +7,8 @@
#include "LLlex.h"
#include "def.h"
#include "f_info.h"
#include "idf.h"
#include "main.h"
#include "node.h"
#include "scope.h"
@@ -20,8 +22,18 @@
Program
{
struct def *df;
arith dummy;
}:
ProgramHeading(&df) ';' Block(df) '.'
| { df = new_def();
df->df_idf = str2idf(FileName, 1);
df->df_kind = D_MODULE;
open_scope();
GlobalScope = CurrentScope;
df->prc_vis = CurrVis;
}
Module(df, &dummy)
;
ProgramHeading(register struct def **df;):
@@ -37,6 +49,7 @@ ProgramHeading(register struct def **df;):
'('
ProgramParameters
')'
{ make_extfl(); }
]?
;