mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 08:54:17 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
|
||||
/**
|
||||
* Copyright 1983
|
||||
* Alcyon Corporation
|
||||
* 8716 Production Ave.
|
||||
* San Diego, CA 92121
|
||||
*
|
||||
* @(#)def.h 1.3 11/4/83
|
||||
**/
|
||||
|
||||
/* Parser External Definition File */
|
||||
|
||||
/*key word table*/
|
||||
struct resword reswords[] = {
|
||||
"asm", R_ASM, /* [vlh] 4.2 */
|
||||
"auto", R_AUTO,
|
||||
"break", R_BREAK,
|
||||
"case", R_CASE,
|
||||
"char", R_CHAR,
|
||||
"continue", R_CONTINUE,
|
||||
"default", R_DEFAULT,
|
||||
"do", R_DO,
|
||||
"double", R_DOUBLE,
|
||||
"goto", R_GOTO,
|
||||
"else", R_ELSE,
|
||||
"extern", R_EXTERNAL,
|
||||
"float", R_FLOAT,
|
||||
"for", R_FOR,
|
||||
"if", R_IF,
|
||||
"int", R_INT,
|
||||
"long", R_LONG,
|
||||
"register", R_REGISTER,
|
||||
"return", R_RETURN,
|
||||
"short", R_SHORT,
|
||||
"sizeof", R_SIZEOF,
|
||||
"static", R_STATIC,
|
||||
"struct", R_STRUCT,
|
||||
"switch", R_SWITCH,
|
||||
"typedef", R_TYPEDEF,
|
||||
"union", R_UNION,
|
||||
"unsigned", R_UNSIGNED,
|
||||
"while", R_WHILE,
|
||||
0,
|
||||
};
|
||||
|
||||
char dinfo[] = {
|
||||
0, /*TYPELESS=0*/
|
||||
1|DREG, /*CHAR=1*/
|
||||
2|DREG, /*SHORT=2*/
|
||||
2|DREG, /*INT=3*/
|
||||
4|DREG, /*LONG=4*/
|
||||
1|DREG, /*UCHAR=5*/
|
||||
2|DREG, /*USHORT=6*/
|
||||
2|DREG, /*UNSIGNED=7*/
|
||||
4|DREG, /*ULONG=8*/
|
||||
4|DREG, /*FLOAT=9[vlh]*/
|
||||
4|DREG, /*DOUBLE=10[vlh]*/
|
||||
0, /*STRUCT=11*/
|
||||
0, /*FRSTRUCT=12*/
|
||||
0, /*LLABEL=13*/
|
||||
0, /*INVALID=14*/
|
||||
0, /*INVALID=15*/
|
||||
};
|
||||
|
||||
char aregtab[] = { AREG5, AREG4, AREG3, 0 };
|
||||
char dregtab[] = { DREG7, DREG6, DREG5, DREG4, DREG3, 0 };
|
||||
|
||||
short nextlabel = 1;
|
||||
short structlabel = 1;
|
||||
char *exprp = &exprarea[0];
|
||||
short swp = -1;
|
||||
#ifdef VERSADOS
|
||||
# ifdef FFLAG
|
||||
int fflag = 1;
|
||||
int eflag = 0;
|
||||
# else
|
||||
int eflag = 1;
|
||||
int fflag = 0;
|
||||
# endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user