error messages and error handling

This commit is contained in:
dick
1988-09-16 23:19:50 +00:00
parent 47a9fdaaf1
commit fe62ccb08d
27 changed files with 111 additions and 101 deletions

View File

@@ -20,7 +20,6 @@
#include "code.h"
#include "stack.h"
#include "def.h"
extern int level;
}
@@ -76,6 +75,7 @@ statement
asm_statement
;
expression_statement
{ struct expr *expr;
}
@@ -84,7 +84,7 @@ expression_statement
';'
{
#ifdef DEBUG
print_expr("Full expression", expr);
print_expr("expression_statement", expr);
#endif DEBUG
code_expr(expr, RVAL, FALSE, NO_LABEL, NO_LABEL);
free_expression(expr);
@@ -267,8 +267,8 @@ for_statement
';'
expression(&e_incr)?
')'
{
}
{
}
statement
{
C_df_ilb(l_continue);