many bug fixes, and added flexibility in alignments

This commit is contained in:
ceriel
1986-11-28 11:59:08 +00:00
parent 3bc8215b69
commit 43f4599a42
13 changed files with 337 additions and 122 deletions

View File

@@ -157,10 +157,11 @@ definition
register struct def *df;
struct def *dummy;
} :
CONST [ ConstantDeclaration ';' ]*
CONST [ %persistent ConstantDeclaration ';' ]*
|
TYPE
[ IDENT { df = define(dot.TOK_IDF, CurrentScope, D_TYPE); }
[ %persistent
IDENT { df = define(dot.TOK_IDF, CurrentScope, D_TYPE); }
[ '=' type(&(df->df_type))
| /* empty */
/*
@@ -175,7 +176,7 @@ definition
';'
]*
|
VAR [ VariableDeclaration ';' ]*
VAR [ %persistent VariableDeclaration ';' ]*
|
ProcedureHeading(&dummy, D_PROCHEAD)
';'