Additions for non-correcting error recovery

This commit is contained in:
ceriel
1997-02-21 17:11:04 +00:00
parent 8ea5d257c4
commit 99ac23b4b4
11 changed files with 50 additions and 11 deletions

View File

@@ -109,7 +109,9 @@ import(int local;)
name, otherwise the names in the import list are module names.
*/
[ FROM
IDENT { FromId = dot2leaf(Name);
IDENT
%substart DefinitionModule;
{ FromId = dot2leaf(Name);
if (local) {
df = lookfor(FromId,enclosing(CurrVis),0,D_USED);
}
@@ -117,6 +119,7 @@ import(int local;)
}
]?
IMPORT IdentList(&ImportList) ';'
%substart DefinitionModule;
{ if (FromId) {
EnterFromImportList(ImportList, df, FromId);
}
@@ -226,7 +229,9 @@ ProgramModule
register t_def *df;
} :
MODULE
IDENT {
IDENT
%substart DefinitionModule;
{
if (state == IMPLEMENTATION) {
int len = strlen(dot.TOK_IDF->id_text);