Comments added.
Made consistent with 'arg_type.h' and 'em_parser.h'
This commit is contained in:
		
							parent
							
								
									a6de718152
								
							
						
					
					
						commit
						9f510b9172
					
				
					 1 changed files with 16 additions and 14 deletions
				
			
		|  | @ -1,8 +1,5 @@ | ||||||
| #define SEGBSS		0 | #include "em_parser.h" | ||||||
| #define SEGHOL		1 | 
 | ||||||
| #define SEGCON		2 |  | ||||||
| #define SEGROM		3 |  | ||||||
| #define SEGTXT		4 |  | ||||||
| #define NOSEG		5 | #define NOSEG		5 | ||||||
| #define UNKNOWN		(-1) | #define UNKNOWN		(-1) | ||||||
| 
 | 
 | ||||||
|  | @ -11,14 +8,9 @@ | ||||||
| #define	FALSE		0 | #define	FALSE		0 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| #define STRING		0 |  | ||||||
| #define LABEL		1 |  | ||||||
| #define ARITH		2 |  | ||||||
| #define INT		3 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| #define MAX_ARGS	4 | #define MAX_ARGS	4 | ||||||
| 
 | 
 | ||||||
|  | /* All the different types of C_INSTR's, based on types of the arguments. */ | ||||||
| #define NO_ARGS		0 | #define NO_ARGS		0 | ||||||
| #define C_ARG		1 | #define C_ARG		1 | ||||||
| #define D_ARG		2 | #define D_ARG		2 | ||||||
|  | @ -51,11 +43,21 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| typedef struct { | typedef struct { | ||||||
| 		char *header; | 		char *header;		 /* The declaration of parameters for
 | ||||||
| 		int arg_type[MAX_ARGS];		/* Zoals ze eruit gaan!! */ | 					  * each type of C_INSTR. | ||||||
| 		char *arg_id[MAX_ARGS], *arg_conv[MAX_ARGS]; | 					  */ | ||||||
|  | 		int arg_type[MAX_ARGS];	 /* Type of the $i's after the
 | ||||||
|  | 					  * conversions ( extnd_name(), etc.). | ||||||
|  | 					  */ | ||||||
|  | 		char *arg_id[MAX_ARGS],	 /* Names of the parameters, to be used
 | ||||||
|  | 					  * left of the '==>' sign. | ||||||
|  | 					  */ | ||||||
|  | 		     *arg_conv[MAX_ARGS];/* Names of the parameters, to be used
 | ||||||
|  | 					  * right of the '==>' sign. | ||||||
|  | 					  */ | ||||||
| 	} t_C_info; | 	} t_C_info; | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| typedef struct { | typedef struct { | ||||||
| 		char *lexeme; | 		char *lexeme; | ||||||
| 		int C_instr_type; | 		int C_instr_type; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue