xref: /csrg-svn/usr.bin/f77/pass1.vax/format.h (revision 47955)
1*47955Sbostic /*-
2*47955Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47955Sbostic  * All rights reserved.
422818Smckusick  *
5*47955Sbostic  * %sccs.include.proprietary.c%
6*47955Sbostic  *
7*47955Sbostic  *	@(#)format.h	5.2 (Berkeley) 04/12/91
822818Smckusick  */
922818Smckusick 
1022818Smckusick /*
1122818Smckusick  * format parser definitions
1222818Smckusick  */
1322818Smckusick 
1422818Smckusick struct syl
1522818Smckusick {
1622818Smckusick 	short op,p1,p2,rpcnt;
1722818Smckusick };
1822818Smckusick 
1922818Smckusick /*	do NOT change this defines or add new ones without
2022818Smckusick  *	changing the value of the following define for OP_TYPE_TAB.
2122818Smckusick  *	change format.h both in the compiler and libI77 simultaneously.
2222818Smckusick  */
2322818Smckusick 
2422818Smckusick 
2522818Smckusick #define RET	1
2622818Smckusick #define REVERT 	2
2722818Smckusick #define GOTO 	3
2822818Smckusick #define X 	4
2922818Smckusick #define SLASH 	5
3022818Smckusick #define STACK 	6
3122818Smckusick #define I 	7
3222818Smckusick #define ED 	8
3322818Smckusick #define NED 	9
3422818Smckusick #define IM 	10
3522818Smckusick #define APOS 	11
3622818Smckusick #define H 	12
3722818Smckusick #define TL 	13
3822818Smckusick #define TR 	14
3922818Smckusick #define T 	15
4022818Smckusick #define COLON 	16
4122818Smckusick #define S 	17
4222818Smckusick #define SP 	18
4322818Smckusick #define SS 	19
4422818Smckusick #define P 	20
4522818Smckusick #define BNZ 	21
4622818Smckusick #define B 	22
4722818Smckusick #define F 	23
4822818Smckusick #define E 	24
4922818Smckusick #define EE 	25
5022818Smckusick #define D 	26
5122818Smckusick #define DE	27		/*** NOT STANDARD FORTRAN ***/
5222818Smckusick #define G 	28
5322818Smckusick #define GE 	29
5422818Smckusick #define L 	30
5522818Smckusick #define A 	31
5622818Smckusick #define AW	32
5722818Smckusick #define R	33		/*** NOT STANDARD FORTRAN ***/
5822818Smckusick #define DOLAR	34		/*** NOT STANDARD FORTRAN ***/
5922818Smckusick #define SU	35		/*** NOT STANDARD FORTRAN ***/
6022818Smckusick 
6122818Smckusick #define	FMTUNKN	-1
6222818Smckusick #define FMTOK	1
6322818Smckusick #define FMTERR	0
6422818Smckusick 
6522818Smckusick #define FMT_COMP 0x101		/* indicates pre-compiled formats */
6622818Smckusick 
6722818Smckusick extern struct syl syl[];
6822818Smckusick extern int parenlvl,revloc;
6922818Smckusick extern short pc;
70