newer version

This commit is contained in:
ceriel
1986-06-17 12:04:05 +00:00
parent f1a0c90fb1
commit a9dfdc494b
21 changed files with 573 additions and 516 deletions

View File

@@ -18,19 +18,17 @@ static char *RcsId = "$Header$";
#include "node.h"
#include "const.h"
#include "type.h"
#include "chk_expr.h"
}
number(struct node **p;)
{
struct type *tp;
} :
number(struct node **p;) :
[
%default
INTEGER { tp = toktype; }
INTEGER
|
REAL { tp = real_type; }
REAL
] { *p = MkLeaf(Value, &dot);
(*p)->nd_type = tp;
(*p)->nd_type = toktype;
}
;